From fa1692180e18f95c9e8f46d37c5bb8797eeebd5a Mon Sep 17 00:00:00 2001 From: akir Date: Sun, 31 Oct 2004 23:04:30 +0000 Subject: fix #1057499 --- src/FbTk/Font.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 5bbe6de..400e197 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Font.cc,v 1.21 2004/09/11 22:58:20 fluxgen Exp $ +//$Id: Font.cc,v 1.22 2004/10/31 23:04:30 akir Exp $ #include "StringUtil.hh" @@ -364,8 +364,9 @@ bool Font::load(const std::string &name) { std::list< std::string > tokens; std::string fname; - fname= std::string(name.c_str(), sep + 1); - FbTk::StringUtil::stringtok(tokens, name.substr(sep + 1, name.length()), ","); + fname= std::string(name.c_str(), sep); + + FbTk::StringUtil::stringtok(tokens, name.substr(sep + 1), ","); tokens.unique(); bool firstone= true; @@ -386,7 +387,7 @@ bool Font::load(const std::string &name) { fname+= ", "; else firstone= false; - fname= fname + *token; + fname= fname + ":" + *token; } } -- cgit v0.11.2