X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.cpp;h=975940310c41b346b90342597a8c907b81190e34;hb=fb12b282f1300123c7f4c7f10525c29cb598e1fe;hp=f4e62014358740360967da486a3db4f32109848f;hpb=9d0ea8aeff32833a90b3fe64df0c5518a9e241be;p=lyx.git diff --git a/src/Row.cpp b/src/Row.cpp index f4e6201435..975940310c 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -17,6 +17,7 @@ #include #include "Row.h" + #include "support/debug.h" @@ -24,13 +25,13 @@ namespace lyx { Row::Row() - : separator(0), hfill(0), label_hfill(0), x(0), + : separator(0), label_hfill(0), x(0), sel_beg(-1), sel_end(-1), changed_(false), crc_(0), pos_(0), end_(0) {} Row::Row(pos_type pos) - : separator(0), hfill(0), label_hfill(0), x(0), + : separator(0), label_hfill(0), x(0), sel_beg(-1), sel_end(-1), changed_(false), crc_(0), pos_(pos), end_(0) {} @@ -60,7 +61,7 @@ void Row::endpos(pos_type p) } -void Row::setSelection(pos_type beg, pos_type end) +void Row::setSelection(pos_type beg, pos_type end) const { if (pos_ >= beg && pos_ <= end) sel_beg = pos_;