summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-04 11:31:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-04 11:31:14 +0000
commit727c3e088698dfd21cf4beaa5455d4c4d5b495fb (patch)
treec12da29fd8deea4d0c167b1e04d9ed35000dfab2
parente537d227d3a801076aff98c113650942fb6b3699 (diff)
tdf#88854 crash on opening drop caps
Change-Id: I3ab56e4909d2a20dc8f0bafe0273e81065296f17
-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 fd9c893ec391..09801c29d32a 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -394,7 +394,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;
}