diff options
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index 3d95034160e8..789e57d8f92c 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -83,7 +83,8 @@ #include <valgrind/callgrind.h> #endif -#include "comphelper/processfactory.hxx" +#include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include "com/sun/star/beans/XMaterialHolder.hpp" #include "com/sun/star/beans/NamedValue.hpp" @@ -2085,9 +2086,9 @@ void PrintFontManager::initFontsAlias() ByteString aMap = GetCommandLineToken( 1, aLine ); // remove eventual quotes - aAlias.EraseLeadingChars( '"' ); + aAlias = comphelper::string::stripStart(aAlias, '"'); aAlias.EraseTrailingChars( '"' ); - aMap.EraseLeadingChars( '"' ); + aMap = comphelper::string::stripStart(aMap, '"'); aMap.EraseTrailingChars( '"' ); XLFDEntry aAliasEntry, aMapEntry; |