[ooo-build-commit] patches/dev300

Radek Doulík rodo at kemper.freedesktop.org
Fri Jun 5 01:52:46 PDT 2009


 patches/dev300/apply                           |    2 ++
 patches/dev300/svx-fix-fit-to-frame-crash.diff |   12 ++++++++++++
 2 files changed, 14 insertions(+)

New commits:
commit 3da956735a04876553ba601156ed10e9f7170f3c
Author: Radek Doulik <rodo at novell.com>
Date:   Fri Jun 5 10:51:35 2009 +0200

    fix impress crash related to fit to frame text feature
    
    * patches/dev300/apply:
    * patches/dev300/svx-fix-fit-to-frame-crash.diff:

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 7e9b676..780a0a5 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3077,6 +3077,8 @@ ubuntu-gnome-fpicker-gfile-fuse.diff, ccheney
 # Fix for crash on Windows by Rail Aliev. Root cause unknown.
 configmgr-validate-removedtree.diff, n#505704
 
+svx-fix-fit-to-frame-crash.diff, n#508621, rodo
+
 [ OOXML ]
 oox-pptx-import-fix-placeholder-text-style.diff, n#479834, rodo
 oox-pptx-import-fix-text-body-properties-priority.diff, n#403402, rodo
diff --git a/patches/dev300/svx-fix-fit-to-frame-crash.diff b/patches/dev300/svx-fix-fit-to-frame-crash.diff
new file mode 100644
index 0000000..9302a1c
--- /dev/null
+++ b/patches/dev300/svx-fix-fit-to-frame-crash.diff
@@ -0,0 +1,12 @@
+diff -rup svx/source/editeng-orig/impedit3.cxx svx/source/editeng/impedit3.cxx
+--- svx/source/editeng-orig/impedit3.cxx	2009-06-05 10:19:00.000000000 +0200
++++ svx/source/editeng/impedit3.cxx	2009-06-05 10:45:28.000000000 +0200
+@@ -940,7 +940,7 @@ sal_Bool ImpEditEngine::CreateLines( USH
+ //						nCurPos -= rLRItem.GetTxtLeft();	// Tabs relativ zu LI
+ 						// Skalierung rausrechnen
+ 						if ( aStatus.DoStretch() && ( nStretchX != 100 ) )
+-							nCurPos = nCurPos*100/nStretchX;
++						    nCurPos = nCurPos*100/std::max((sal_Int32)nStretchX, 1);
+ 
+                         short nAllSpaceBeforeText = static_cast< short >(rLRItem.GetTxtLeft()/* + rLRItem.GetTxtLeft()*/ + nSpaceBeforeAndMinLabelWidth);
+                         aCurrentTab.aTabStop = pNode->GetContentAttribs().FindTabStop( nCurPos - nAllSpaceBeforeText /*rLRItem.GetTxtLeft()*/, aEditDoc.GetDefTab() );


More information about the ooo-build-commit mailing list