summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-27 13:58:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-27 13:58:10 +0100
commitd19af82eabb4a356a1d29cd470c48c42952b6a7e (patch)
tree41051d845a161572d739b268c12403131c8650a7 /sw
parentce941a33b7bcae6a1954d7f4235a1cf15690d95e (diff)
surely std::min was the intent
Change-Id: Ic643d047e475cc3be0ea7e972c51e17babc1aa1e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx2
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()) );
}