[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/flake
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2010-10-10 13:20:18
Message-ID: 20101010132018.2800F3E1F1 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1184482 by dkazakov:

Initialize the position of the shape before painting it

BUG:253032
reviewed-by: Thomas Zander


 M  +1 -0      KoCanvasControllerWidgetViewport_p.cpp  


--- trunk/koffice/libs/flake/KoCanvasControllerWidgetViewport_p.cpp #1184481:1184482
@@ -155,6 +155,7 @@
         if (m_draggedShape->shapeId().isEmpty())
             m_draggedShape->setShapeId(factory->id());
         m_draggedShape->setZIndex(KoShapePrivate::MaxZIndex);
+        m_draggedShape->setAbsolutePosition(correctPosition(event->pos()));
 
         m_parent->canvas()->shapeManager()->addShape(m_draggedShape);
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic