Kaydet (Commit) d19af82e authored tarafından Caolán McNamara's avatar Caolán McNamara

surely std::min was the intent

Change-Id: Ic643d047e475cc3be0ea7e972c51e17babc1aa1e
üst ce941a33
...@@ -782,7 +782,7 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet ) ...@@ -782,7 +782,7 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet )
if (!m_pWholeWordCB->IsChecked()) 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()) ); sText.getLength(), m_pDropCapsField->GetValue()) );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment