summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index dd1d784665f4..b2bcbf23c41d 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -744,8 +744,10 @@ namespace
++nContStart; // now its start of content, directly after Id
sal_Int32 nContEnd = _rRawString.indexOf( ',', nContStart );
-
- s = _rRawString.copy( nContStart, nContEnd - nContStart );
+ if (nContEnd != -1)
+ s = _rRawString.copy( nContStart, nContEnd - nContStart );
+ else
+ s = _rRawString.copy(nContStart);
}
return s;