Re: Decimal precision in custom attributes
- From: Hans Breuer <hans breuer org>
- To: dia-list gnome org
- Subject: Re: Decimal precision in custom attributes
- Date: Tue, 18 Dec 2012 20:18:33 +0100
Hi Wojciech,
At 18.12.2012 11:45, Wojciech GoÅÄbiowski wrote:
Hi all
I've created several shapes. Each of them has few custom (extended)
attributes of various types (<ext_attributes> tag in .shape file). I
realized that with Dia interface I'm not able to enter values for 'real'
type attributes with precision higher than 2 decimal places (i.e. I want
to enter 12.3456, but I'm only able to write 12.34). Actually I want to
enter values like 2.345e-6. Is there a way to change the precision for
extended attributes controls? I see that in .dia file values are stored
with much greater precision.
The ext_attributes user interface is created with Dia's standard property
system. The RealProperty - also used in non-custom objects - is indeed
hardcoded to have two digits. See:
http://git.gnome.org/browse/dia/tree/lib/prop_geomtypes.c#n74
So the change you are requesting is requiring compilation.
The precision used for storing values in the diagram file is independent.
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]