]> git.lyx.org Git - features.git/commitdiff
Fix warning and tab problem, thx Andre
authorMartin Vermeer <martin.vermeer@hut.fi>
Sun, 30 Sep 2007 17:56:49 +0000 (17:56 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Sun, 30 Sep 2007 17:56:49 +0000 (17:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20611 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathFrac.cpp

index 863107403074570638dd0181e2fb938488eecada..c7539add69192ae0ec97ed333dec46a4e7ad84ad 100644 (file)
@@ -48,14 +48,14 @@ InsetMathFrac const * InsetMathFrac::asFracInset() const
 
 bool InsetMathFrac::idxRight(Cursor & cur) const
 {
-       InsetMath::idx_type target;
+       InsetMath::idx_type target = 0;
        if (kind_ == UNIT || (kind_ == UNITFRAC && nargs() == 3)) {
                if (nargs() == 3)
                        target = 0;
                else if (nargs() == 2)
                        target = 1;
        } else
-               return false;
+               return false;
        if (cur.idx() == target)
                return false;
        cur.idx() = target;
@@ -66,14 +66,14 @@ bool InsetMathFrac::idxRight(Cursor & cur) const
 
 bool InsetMathFrac::idxLeft(Cursor & cur) const
 {
-       InsetMath::idx_type target;
+       InsetMath::idx_type target = 0;
        if (kind_ == UNIT || (kind_ == UNITFRAC && nargs() == 3)) {
                if (nargs() == 3)
                        target = 2;
                else if (nargs() == 2)
                        target = 0;
        } else
-               return false;
+               return false;
        if (cur.idx() == target)
                return false;
        cur.idx() = target;