From d19af82eabb4a356a1d29cd470c48c42952b6a7e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 27 Apr 2014 13:58:10 +0100 Subject: surely std::min was the intent Change-Id: Ic643d047e475cc3be0ea7e972c51e17babc1aa1e --- sw/source/ui/chrdlg/drpcps.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') 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( + sText = sText.copy( 0, std::min( sText.getLength(), m_pDropCapsField->GetValue()) ); } -- cgit