X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fentry.cpp;fp=source%2Fentry.cpp;h=5aadbc262d355805e3b4fe338714a2a0bb8d4311;hp=19bbaf9dc693f685a875ef962dcb03ac3a42340c;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hpb=9f38197854e699a6093a906ab43f4238f3cd2388 diff --git a/source/entry.cpp b/source/entry.cpp index 19bbaf9..5aadbc2 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -343,7 +343,7 @@ void Entry::on_style_change() if(!style) { - text_part = 0; + text_part = nullptr; return; } @@ -468,7 +468,7 @@ void Entry::check_view_range() if(!multiline || !text_part) return; - visible_rows = text.get_visible_lines(*text_part, geom, 0); + visible_rows = text.get_visible_lines(*text_part, geom, nullptr); unsigned row, col; text.offset_to_coords(edit_pos, row, col);