diff options
Diffstat (limited to 'kig/objects/line_type.cc')
-rw-r--r-- | kig/objects/line_type.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kig/objects/line_type.cc b/kig/objects/line_type.cc index a02cc80b..84deb46e 100644 --- a/kig/objects/line_type.cc +++ b/kig/objects/line_type.cc @@ -232,11 +232,11 @@ void SegmentABType::executeAction( int i, ObjectHolder&, ObjectTypeCalcer& c, // pretend to use this var.. (void) i; - std::vector<ObjectCalcer*> parents = c.parents(); - assert( margsparser.checkArgs( parents ) ); + std::vector<ObjectCalcer*> tqparents = c.tqparents(); + assert( margsparser.checkArgs( tqparents ) ); - Coordinate a = static_cast<const PointImp*>( parents[0]->imp() )->coordinate(); - Coordinate b = static_cast<const PointImp*>( parents[1]->imp() )->coordinate(); + Coordinate a = static_cast<const PointImp*>( tqparents[0]->imp() )->coordinate(); + Coordinate b = static_cast<const PointImp*>( tqparents[1]->imp() )->coordinate(); bool ok = true; double length = getDoubleFromUser( @@ -246,8 +246,8 @@ void SegmentABType::executeAction( int i, ObjectHolder&, ObjectTypeCalcer& c, Coordinate nb = a + ( b - a ).normalize( length ); - MonitorDataObjects mon( getAllParents( parents ) ); - parents[1]->move( nb, d.document() ); + MonitorDataObjects mon( getAllParents( tqparents ) ); + tqparents[1]->move( nb, d.document() ); KigCommand* cd = new KigCommand( d, i18n( "Resize Segment" ) ); mon.finish( cd ); d.history()->addCommand( cd ); |