diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-11-21 12:42:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-21 13:12:15 +0000 |
commit | 69c4340fcea77ac5b74cbde13f44b4f7034398aa (patch) | |
tree | 59d6ae3b79a7ecfaccb9e85accda3549a4e0e44b /svx | |
parent | 783b93978d49ccdbc30b4afdd95a94980f99100e (diff) |
drawing shapes aren't tracking style name changes correctly
in draw, create a box, enter some text, exit and select box
F11 for style navigator, new style, set font to e.g. 88
apply this style to the box. All ok.
If you modify the style and changes its font to e.g. bold
the text in the box tracks it as expected. All ok.
If you modify the style and change its name, the box resets
to something different and there's loads of warnings about
unknown styles. Not ok.
The style modification fires, but the style name gets overwritten
by the style stuck in a OutlinerParaObject that gets overlaid
over the editengine.
All the rTextProvider.getTextCount uses that don't iterate over all entries
look dubious to me, but I'll initially fix this one that I have hard evidence
for as broken.
All this is probably broken since...
commit 838c0fa8228f4ca656a264f6a5610c337ebf4fef
Author: Rüdiger Timm <rt@openoffice.org>
Date: Wed Mar 12 08:47:30 2008 +0000
INTEGRATION: CWS impresstables2 (1.14.72); FILE MERGED
Change-Id: Ib0dd2857ed26c49dcfa00aae923e36429a7f7862
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/properties/textproperties.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx index a511436cd97d..fa8762ab2164 100644 --- a/svx/source/sdr/properties/textproperties.cxx +++ b/svx/source/sdr/properties/textproperties.cxx @@ -608,7 +608,7 @@ namespace sdr if(aOldName != aNewName) { sal_Int32 nText = rTextProvider.getTextCount(); - while( --nText > 0 ) + while( --nText >= 0 ) { OutlinerParaObject* pParaObj = rTextProvider.getText( nText )->GetOutlinerParaObject(); if( pParaObj ) |