[Libreoffice-commits] .: editeng/source

Radek Doulík rodo at kemper.freedesktop.org
Thu Jun 9 04:48:03 PDT 2011


 editeng/source/outliner/outlin2.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 328c751d23271cf9a1497708dac4b5017b94eccb
Author: Radek Doulik <rodo at novell.com>
Date:   Thu Jun 9 13:46:31 2011 +0200

    fix wrong bullet placement when stretching happens (fixes n#694344)

diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx
index cb4f6f5..0db6646 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 );
 }
 


More information about the Libreoffice-commits mailing list