sw/source/ui/chrdlg/drpcps.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d19af82eabb4a356a1d29cd470c48c42952b6a7e Author: Caolán McNamara <caol...@redhat.com> Date: Sun Apr 27 13:58:10 2014 +0100 surely std::min was the intent Change-Id: Ic643d047e475cc3be0ea7e972c51e17babc1aa1e diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx index e5b7b99..e35a10b 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()) ); }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits