Text properties dlg box: style change not stored
Setup: SVN rev. 3583, Ubuntu 10.04, Qt SDK 10.02 (Qt lib 4.6.2)
Steps
1) Open any score
2) Right-click on a text (for instance the score title)
3) Select "Text properties"
4) Change the text style
5) Press [OK]
6) Re-open the text properties dlg box
Result: The text style is the same as before the change in step 4)
Expected result: style set in step 4) is recorded and put into effect.
It seems the bug is in textproperties.cpp
, line 138, function TextProp::get()
, where the line:
if (unstyledGroup->isChecked() )
should read:
if (styledGroup->isChecked() )
___________________________
Also, I suspect lines 147-154 of the same function, where font properties are read back, should be executed only if the text is not styled.
Thanks,
M.
Comments
Oh well, things were not so simple.
Also
text.cpp
needs to be modified, to check if text is styled and to set the style, in case.Attached is a patch for
textproperties.cpp
andtext.cpp
.Thanks,
M.
It's been a while, but just incase :).
I cannot reproduce the first bug even if the patch is not marked as applied. So I guess it's fixed. 72a29cfe74
Automatically closed -- issue fixed for 2 weeks with no activity.