summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-04 11:31:14 +0000
committerMichael Stahl <mstahl@redhat.com>2015-02-06 14:29:38 +0000
commit76682f53a4dbcd12b9d0c02a3bc6e264c32651af (patch)
tree6acd4fdfde1f430d3a899361ff68b42350ca79e0 /sw/source/ui
parent224c65a22b580c6acd09aced71483177d2a9fbd7 (diff)
tdf#88854 crash on opening drop caps
Change-Id: I3ab56e4909d2a20dc8f0bafe0273e81065296f17 (cherry picked from commit 727c3e088698dfd21cf4beaa5455d4c4d5b495fb) Reviewed-on: https://gerrit.libreoffice.org/14320 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index 0dd86918c4e3..3449aab54daa 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -393,7 +393,9 @@ void SwDropCapsPict::DrawPrev( const Point& rPt )
rFnt.DrawPrev( this, mpPrinter, aPt, maText, nStart, nEnd - nStart );
- aPt.X() += maScriptChanges[ nIdx ].textWidth;
+ if (!maScriptChanges.empty())
+ aPt.X() += maScriptChanges[ nIdx ].textWidth;
+
if ( !GetNextScriptSegment(nIdx, nStart, nEnd, nScript) )
break;
}