Cosmetics (Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26404 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-09-14 22:09:10 +00:00
parent 1383629299
commit 4b0bd42405
2 changed files with 8 additions and 8 deletions

View File

@ -65,11 +65,11 @@ void Row::endpos(pos_type p)
}
bool Row::isMarginSelected(bool margin_begin, DocIterator const & beg,
DocIterator const & end) const
bool Row::isMarginSelected(bool left_margin, DocIterator const & beg,
DocIterator const & end) const
{
pos_type const sel_pos = margin_begin ? sel_beg : sel_end;
pos_type const margin_pos = margin_begin ? pos_ : end_;
pos_type const sel_pos = left_margin ? sel_beg : sel_end;
pos_type const margin_pos = left_margin ? pos_ : end_;
// Is the chosen margin selected ?
if (sel_pos == margin_pos) {
@ -94,7 +94,7 @@ bool Row::isMarginSelected(bool margin_begin, DocIterator const & beg,
void Row::setSelectionAndMargins(DocIterator const & beg,
DocIterator const & end) const
DocIterator const & end) const
{
setSelection(beg.pos(), end.pos());

View File

@ -49,8 +49,8 @@ public:
void setSelection(pos_type sel_beg, pos_type sel_end) const;
///
bool selection() const;
/// Set the selection begin and end and whether the margin begin and end
/// are selected.
/// Set the selection begin and end and whether the left and/or right
/// margins are selected.
void setSelectionAndMargins(DocIterator const & beg,
DocIterator const & end) const;
@ -100,7 +100,7 @@ private:
* \param beg
* \param end
*/
bool isMarginSelected(bool margin_begin, DocIterator const & beg,
bool isMarginSelected(bool left_margin, DocIterator const & beg,
DocIterator const & end) const;
/// has the Row appearance changed since last drawing?