diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 11:31:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-04 11:31:14 +0000 |
commit | 727c3e088698dfd21cf4beaa5455d4c4d5b495fb (patch) | |
tree | c12da29fd8deea4d0c167b1e04d9ed35000dfab2 | |
parent | e537d227d3a801076aff98c113650942fb6b3699 (diff) |
tdf#88854 crash on opening drop caps
Change-Id: I3ab56e4909d2a20dc8f0bafe0273e81065296f17
-rw-r--r-- | sw/source/ui/chrdlg/drpcps.cxx | 4 |
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; } |