mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 00:20:43 +00:00
Squash MSVC warning about comparison of DocIterator::idx_type and bool.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9627 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
96cdf4a91a
commit
b9ec5a5146
@ -1,3 +1,8 @@
|
||||
2005-02-14 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* math_rootinset.C (idxUpDown): Silence an MSVC compiler warning
|
||||
by making the code more transparent.
|
||||
|
||||
2005-02-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* math_gridinset.C (halign): fix '|' to the right of the last column
|
||||
|
@ -82,7 +82,7 @@ void MathRootInset::normalize(NormalStream & os) const
|
||||
|
||||
bool MathRootInset::idxUpDown(LCursor & cur, bool up) const
|
||||
{
|
||||
bool target = !up; // up ? 0 : 1;
|
||||
LCursor::idx_type const target = up ? 0 : 1;
|
||||
if (cur.idx() == target)
|
||||
return false;
|
||||
cur.idx() = target;
|
||||
|
Loading…
Reference in New Issue
Block a user