[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview StringAttribute.java, 1.17, 1.1
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-20 17:22:47
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6011/src/net/sourceforge/bprocessor/gui/attrview Modified Files: StringAttribute.java Log Message: Edge Split implemented AttributeView displays double values as their actual value Ð some kind of length value should be implemented to contain unit like mm. Index: StringAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/StringAttribute.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** StringAttribute.java 12 Oct 2007 08:05:06 -0000 1.17 --- StringAttribute.java 20 Oct 2007 17:22:49 -0000 1.18 *************** *** 111,115 **** protected double round(double value) { long i = (long) (value * 1000000); ! return ((double) i) / 1000.0; } --- 111,115 ---- protected double round(double value) { long i = (long) (value * 1000000); ! return i / 1000000.0; } *************** *** 280,284 **** Object o = stack.pop(); if (o instanceof Double) { ! attribute.setValue((Double)o / 1000); } else { attribute.setValue(0); --- 280,284 ---- Object o = stack.pop(); if (o instanceof Double) { ! attribute.setValue(o); } else { attribute.setValue(0); |