[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Sun Apr 27 05:59:09 PDT 2014
sw/source/ui/chrdlg/drpcps.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d19af82eabb4a356a1d29cd470c48c42952b6a7e
Author: Caolán McNamara <caolanm at 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()) );
}
More information about the Libreoffice-commits
mailing list