X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.cpp;h=86730757fd6c93889b772ac648bbcd4913a98c85;hb=720455325086e08bc9fdcd822d713480d0c2e0a0;hp=a3ed762a2cd560754dcd973094e547d5977eae20;hpb=dbdb28962362626a729fc052ee8c8934466b8396;p=libs%2Fgltk.git diff --git a/source/text.cpp b/source/text.cpp index a3ed762..8673075 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -25,7 +25,14 @@ 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); +} Text::Text(const Style &s, const string &t): style(&s)