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

fix string

Change-Id: Id441395365d3cb6f598760042d5e54e905783b91
üst ae957038
...@@ -728,11 +728,11 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException, ...@@ -728,11 +728,11 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
OUString sSectLink(pSectionData->GetLinkFileName()); OUString sSectLink(pSectionData->GetLinkFileName());
while (3 < comphelper::string::getTokenCount(sSectLink, sfx2::cTokenSeparator)) while (3 < comphelper::string::getTokenCount(sSectLink, sfx2::cTokenSeparator))
{ {
sSectLink += sfx2::cTokenSeparator; sSectLink += OUString(sfx2::cTokenSeparator);
} }
sSectLink = comphelper::string::setToken(sSectLink, 2, sfx2::cTokenSeparator, sLink); sSectLink = comphelper::string::setToken(sSectLink, 2, sfx2::cTokenSeparator, sLink);
pSectionData->SetLinkFileName(sSectLink); pSectionData->SetLinkFileName(sSectLink);
if (sSectLink.Len() < 3) if (sSectLink.getLength() < 3)
{ {
pSectionData->SetType(CONTENT_SECTION); pSectionData->SetType(CONTENT_SECTION);
} }
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <hintids.hxx> #include <hintids.hxx>
#include <comphelper/string.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx> #include <vcl/wrkwin.hxx>
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
......
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