From bfe44be58718038c6517dc54acaf208205f76ee4 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Sun, 30 Sep 2007 17:56:49 +0000 Subject: [PATCH] Fix warning and tab problem, thx Andre git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20611 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathFrac.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.2