diff options
Diffstat (limited to 'sw/source')
-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 5edfda138434..ff3b11f90e58 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; } |