diff options
Diffstat (limited to 'kugar/kudesigner_lib/view.cpp')
-rw-r--r-- | kugar/kudesigner_lib/view.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kugar/kudesigner_lib/view.cpp b/kugar/kudesigner_lib/view.cpp index a74bbd610..6c5c4404e 100644 --- a/kugar/kudesigner_lib/view.cpp +++ b/kugar/kudesigner_lib/view.cpp @@ -474,10 +474,10 @@ void View::contentsMouseMoveEvent( TQMouseEvent* e ) { double newXPos = moving->x() + p.x() - moving_start.x(); double newYPos = moving->y() + p.y() - moving_start.y(); - fixMinValues( newYPos, moving->tqparentSection->y(), moving_offsetY ); - fixMinValues( newXPos, moving->tqparentSection->x(), moving_offsetX ); - fixMaxValues( newYPos, moving->height(), moving->tqparentSection->y() + moving->tqparentSection->height(), moving_offsetY ); - fixMaxValues( newXPos, moving->width(), moving->tqparentSection->x() + moving->tqparentSection->width(), moving_offsetX ); + fixMinValues( newYPos, moving->parentSection->y(), moving_offsetY ); + fixMinValues( newXPos, moving->parentSection->x(), moving_offsetX ); + fixMaxValues( newYPos, moving->height(), moving->parentSection->y() + moving->parentSection->height(), moving_offsetY ); + fixMaxValues( newXPos, moving->width(), moving->parentSection->x() + moving->parentSection->width(), moving_offsetX ); double sx = newXPos; double sy = newYPos; |