summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/textsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/shells/textsh.cxx')
-rw-r--r--sw/source/ui/shells/textsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx
index 266c03b0c7df..49f248e056f7 100644
--- a/sw/source/ui/shells/textsh.cxx
+++ b/sw/source/ui/shells/textsh.cxx
@@ -766,7 +766,7 @@ void SwTextShell::StateInsert( SfxItemSet &rSet )
else
{
OUString sReturn = rSh.GetSelTxt();
- sReturn = sReturn.copy(0, std::min(255, sReturn.getLength()));
+ sReturn = sReturn.copy(0, std::min<sal_Int32>(255, sReturn.getLength()));
aHLinkItem.SetName(comphelper::string::stripEnd(sReturn, ' '));
}