Fixed #117 (DTrans#itype broken)

This commit is contained in:
Matthias Koefferlein 2018-04-24 21:26:21 +02:00
parent a4b396535f
commit 08bcd1e418
3 changed files with 48 additions and 1 deletions

View File

@ -1,3 +1,48 @@
0.25.3
* Enhancement: New "split" method for polygons
This method will fragment the polygons into two or more
smaller parts for reducing their vertex count.
* Enhancement: DXF and CIF "keep layer names"
If this option is set in the reader options, layer names
are not translated into GDS layer/datatype pairs.
Specifically a layer called "L5" for example is not
translated to 5/0 and to "L5D0" on output correspondingly.
The buddy script option is "--keep-layer-names".
* Enhancement: DXF contour joining accuracy
On the DXF reader's options, a contour joining accuracy
can be specified. Small gaps smaller than this accuracy
will be closed when forming joined contours from edges.
The buddy script option is --dxf-contour-accuracy=value.
* Bugfix: DXF display issue
In some cases, DXF cell instances did not trigger bounding
box update and the cells only got visible after save and
load.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/117
DTrans#itype was broken.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/116
Fixed a polygon decomposition bug when writing GDS files
with big polygons with many holes. As a side effect, the
polygons with many holes computed by a NOT operation for
example are less complex and spikes in the cutlines are
avoided.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/115
Reader options were not persisted.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/114
Custom line styles not loaded from tech's layer properties
file.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/112
Salt package repository relative paths have not been working.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/109
Issues with Python 3 and shape properties - property
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/108
Bugfix on Box#enlarge and Box#moved for empty boxes.
keys generated with Python 3 could not be written to GDS2.
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/107
Undo not working with shapes.
* Enhancement: https://github.com/klayoutmatthias/klayout/issues/106
Search & replace help page enhancements.
0.25.2 (2018-03-20):
* Bugfix: https://github.com/klayoutmatthias/klayout/issues/90
DRC: "extended" was not working as expected with "joined = true"

View File

@ -479,7 +479,7 @@ static db::DTrans *dtrans_from_itrans (const db::Trans &t)
static db::Trans dtrans_to_trans (const db::DTrans *t, double dbu)
{
db::Trans f (*t);
f.disp (db::Trans::displacement_type (f.disp () * (1.0 / dbu)));
f.disp (db::Trans::displacement_type (t->disp () * (1.0 / dbu)));
return f;
}

View File

@ -44,6 +44,8 @@ class DBTrans_TestClass < TestBase
assert_equal( e.to_s, "m135 0,0" )
assert_equal( e2.to_s, "m135 0,0" )
assert_equal( f.to_s, "m135 17,5" )
assert_equal( RBA::DTrans::new( RBA::Trans::M135, RBA::DPoint::new( 1.2, 0.25 )).to_itype(0.001).to_s, "m135 1200,250" )
assert_equal( RBA::Trans::new( RBA::Trans::M135, RBA::Point::new( 1200, 250 )).to_dtype(0.001).to_s, "m135 1.2,0.25" )
assert_equal( RBA::DTrans::from_s(f.to_s).to_s, f.to_s )
assert_equal( b.trans( RBA::DPoint::new( 1, 0 )).to_s, "17,4" )