diff options
-rw-r--r-- | sw/source/ui/chrdlg/drpcps.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx index e5b7b997f49a..e35a10b83bc3 100644 --- a/sw/source/ui/chrdlg/drpcps.cxx +++ b/sw/source/ui/chrdlg/drpcps.cxx @@ -782,7 +782,7 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet ) if (!m_pWholeWordCB->IsChecked()) { - sText = sText.copy( 0, std::max<sal_Int32>( + sText = sText.copy( 0, std::min<sal_Int32>( sText.getLength(), m_pDropCapsField->GetValue()) ); } |