Bug 297453

Summary: Artistic text is not drawn where the user draws the bounding box
Product: [Applications] krita Reporter: Antoine <alecail>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 2.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Antoine 2012-04-04 09:54:28 UTC
For an artistic text, after the user has released the mouse button, the artistic text is drawn with the default text, but is if offset by approx. (-width/2, -height/2)
Comment 1 Halla Rempt 2012-04-08 13:44:17 UTC
Right, I can confirm this.
Comment 2 Halla Rempt 2012-04-08 14:19:10 UTC
Git commit ab1566da19a7ab806ec5e70710e53c81d206b0b3 by Boudewijn Rempt.
Committed on 08/04/2012 at 15:50.
Pushed by rempt into branch 'master'.

Fix position of the text shape inserted by krita's text tool

Apparently KoShape::setPosition() sets the position of the center
of the shape, not topleft.

M  +3    -1    krita/plugins/tools/tool_text/kis_tool_text.cc

http://commits.kde.org/calligra/ab1566da19a7ab806ec5e70710e53c81d206b0b3
Comment 3 Halla Rempt 2012-04-12 11:29:16 UTC
Git commit 32cf0494907c218fa75301e18541d5ca9a0cca21 by Boudewijn Rempt.
Committed on 08/04/2012 at 15:50.
Pushed by rempt into branch 'calligra/2.4'.

Fix position of the text shape inserted by krita's text tool

Apparently KoShape::setPosition() sets the position of the center
of the shape, not topleft.

M  +3    -1    krita/plugins/tools/tool_text/kis_tool_text.cc

http://commits.kde.org/calligra/32cf0494907c218fa75301e18541d5ca9a0cca21
Comment 4 Antoine 2012-08-19 13:23:45 UTC
The behaviour can still be observed in Krita 2.5.