diff options
-rw-r--r-- | sw/source/core/doc/dbgoutsw.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx index ac3643817a8f..efd10b7d5bdc 100644 --- a/sw/source/core/doc/dbgoutsw.cxx +++ b/sw/source/core/doc/dbgoutsw.cxx @@ -567,7 +567,7 @@ static String lcl_dbg_out(const SwNode & rNode) const SfxItemSet * pAttrSet = pTxtNode->GetpSwAttrSet(); aTmpStr += String("<txt>", RTL_TEXTENCODING_ASCII_US); - aTmpStr += pTxtNode->GetTxt().copy(0, 10); + aTmpStr += pTxtNode->GetTxt().getLength() > 10 ? pTxtNode->GetTxt().copy(0, 10) : pTxtNode->GetTxt(); aTmpStr += String("</txt>", RTL_TEXTENCODING_ASCII_US); if (rNode.IsTableNode()) |