From: Martin Vermeer Date: Sun, 30 Sep 2007 17:56:49 +0000 (+0000) Subject: Fix warning and tab problem, thx Andre X-Git-Tag: 1.6.10~8106 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bfe44be58718038c6517dc54acaf208205f76ee4;p=features.git Fix warning and tab problem, thx Andre git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20611 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathFrac.cpp b/src/mathed/InsetMathFrac.cpp index 8631074030..c7539add69 100644 --- a/src/mathed/InsetMathFrac.cpp +++ b/src/mathed/InsetMathFrac.cpp @@ -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;