summaryrefslogtreecommitdiffstats
path: root/sfx2/source/dialog/dinfdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/dinfdlg.cxx')
-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 c801d58b0a2c..3ce89ec1c507 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -745,8 +745,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;