diff --git a/src/Row.cpp b/src/Row.cpp index 3fb87bd7e1..e105ae2333 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -169,11 +169,11 @@ Row::Row() {} -bool Row::isMarginSelected(bool left_margin, DocIterator const & beg, +bool Row::isMarginSelected(bool left, DocIterator const & beg, DocIterator const & end) const { - pos_type const sel_pos = left_margin ? sel_beg : sel_end; - pos_type const margin_pos = left_margin ? pos_ : end_; + pos_type const sel_pos = left ? sel_beg : sel_end; + pos_type const margin_pos = left ? pos_ : end_; // Is the chosen margin selected ? if (sel_pos == margin_pos) { diff --git a/src/Row.h b/src/Row.h index 49513d32b9..e45fa4e8c9 100644 --- a/src/Row.h +++ b/src/Row.h @@ -321,7 +321,7 @@ private: * \param beg * \param end */ - bool isMarginSelected(bool left_margin, DocIterator const & beg, + bool isMarginSelected(bool left, DocIterator const & beg, DocIterator const & end) const; /**