X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.cpp;h=66b1726d89bd04e09af044f9977cd945e755803e;hb=1e190a2af27ca99831f51567c16e6b39bf4317c3;hp=b910edb1c7136ec732ab5d0fece6a29dd4ba9a79;hpb=f3900b8b9b2ebdeabd8da0ea102e1e2229966b35;p=lyx.git diff --git a/src/Row.cpp b/src/Row.cpp index b910edb1c7..66b1726d89 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -4,10 +4,10 @@ * Licence details can be found in the file COPYING. * * \author unknown - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author John Levon - * \author André Pönitz - * \author Jürgen Vigna + * \author André Pönitz + * \author Jürgen Vigna * * Full author contact details are available in file CREDITS. * @@ -29,19 +29,11 @@ namespace lyx { Row::Row() : separator(0), label_hfill(0), x(0), sel_beg(-1), sel_end(-1), - left_margin_sel(false), right_margin_sel(false), + begin_margin_sel(false), end_margin_sel(false), changed_(false), crc_(0), pos_(0), end_(0) {} -Row::Row(pos_type pos) - : separator(0), label_hfill(0), x(0), - sel_beg(-1), sel_end(-1), - left_margin_sel(false), right_margin_sel(false), - changed_(false), crc_(0), pos_(pos), end_(0) -{} - - void Row::setCrc(size_type crc) const { changed_ = crc != crc_; @@ -101,8 +93,8 @@ void Row::setSelectionAndMargins(DocIterator const & beg, setSelection(beg.pos(), end.pos()); if (selection()) { - right_margin_sel = isMarginSelected(false, beg, end); - left_margin_sel = isMarginSelected(true, beg, end); + end_margin_sel = isMarginSelected(false, beg, end); + begin_margin_sel = isMarginSelected(true, beg, end); } }