setAttribute() for x,y,... of SPText is broken

Bug #771906 reported by Thinker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

This ticket is about semantic of code. I am not sure if it affects users of Inkscape, but it is a real bug in the codebase. If you set only one of x, y, dx, dy, rotate attributes of a SPText node after calling SPDocument::ensureUpToDate(), the value of the attribute will not work. Because, sp_text_update() does not update display for changing attributes just mentioned. The bug was found when I implement a new function for Inkscape. I need to call SPDocument::ensureUpToDate() to get correctly Bound Box. After that, I need to set x,y of a SPText according values of Bound Box. But, it is not work. After some studying, I work out a patch.

Tags: text
Revision history for this message
Thinker (thinker) wrote :
su_v (suv-lp)
tags: added: text
Revision history for this message
jazzynico (jazzynico) wrote :

Patch updated. Can now be used with the latest (r13455) trunk revisions.

Revision history for this message
jazzynico (jazzynico) wrote :

@Thinker - Do you see an easy way to test the patch? I would be great if we could test it from the UI...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.