summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-06-09 13:46:31 +0200
committerRadek Doulik <rodo@novell.com>2011-06-09 13:47:52 +0200
commit7e23c2dba0f4fd6d3b74c0922917ec08adf79774 (patch)
treec17b54428730abda50fc2e0b1f1ca01936fb7b95 /editeng/source
parent54b81bc2644fa89dd57d35bea74dce13157975cb (diff)
fix wrong bullet placement when stretching happens (fixes n#694344)
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/outliner/outlin2.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx
index 19473740aa9a..a3ba981e7e57 100644
--- a/editeng/source/outliner/outlin2.cxx
+++ b/editeng/source/outliner/outlin2.cxx
@@ -663,6 +663,16 @@ void Outliner::QuickFormatDoc( sal_Bool bFull )
void Outliner::SetGlobalCharStretching( sal_uInt16 nX, sal_uInt16 nY )
{
DBG_CHKTHIS(Outliner,0);
+
+ // reset bullet size
+ sal_uInt16 nParagraphs = (sal_uInt16)pParaList->GetParagraphCount();
+ for ( sal_uInt16 nPara = 0; nPara < nParagraphs; nPara++ )
+ {
+ Paragraph* pPara = pParaList->GetParagraph( nPara );
+ if ( pPara )
+ pPara->aBulSize.Width() = -1;
+ }
+
pEditEngine->SetGlobalCharStretching( nX, nY );
}