X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Ftext.cpp;fp=source%2Ftext.cpp;h=166bbb5212c7145fbc1c39bbfccf44cf7441354f;hp=bffb6e6a86cc0b33f6b35285d6a22338cfb7c8ae;hb=9f38197854e699a6093a906ab43f4238f3cd2388;hpb=b4a3d651f57c46507aaa99a71a14fea15f0e430d diff --git a/source/text.cpp b/source/text.cpp index bffb6e6..166bbb5 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -25,15 +25,8 @@ struct Text::CoordsToGeomData Text::Text(): - style(0) -{ - Line line; - line.start = 0; - line.bytes = 0; - line.length = 0; - line.width = 0; - lines.push_back(line); -} + lines(1) +{ } Text::Text(const Style &s, const string &t): style(&s)