X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxgluelength.C;h=0469b8e7357448e6b84f8d634bf25c7e0859dbb7;hb=98c966c64594611e469313314abd1e59524adb4a;hp=d5add58afc938c1ad35dc83346292689be38aee2;hpb=c80187fbfcefa7972bd9602a2205521aca236349;p=lyx.git diff --git a/src/lyxgluelength.C b/src/lyxgluelength.C index d5add58afc..0469b8e735 100644 --- a/src/lyxgluelength.C +++ b/src/lyxgluelength.C @@ -2,7 +2,7 @@ * ====================================================== * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team. * @@ -58,7 +58,7 @@ string const LyXGlueLength::asString() const buffer << len_.value() << unit_name[len_.unit()] << "+-" << plus_.value() << unit_name[plus_.unit()]; - + else buffer << len_.value() << unit_name[len_.unit()] << '+' << plus_.value() @@ -73,13 +73,13 @@ string const LyXGlueLength::asString() const buffer << len_.value() << unit_name[len_.unit()] << '+' << plus_.value() << unit_name[plus_.unit()]; - + else if (!minus_.zero()) if (len_.unit() == minus_.unit()) buffer << len_.value() << '-' << minus_.value() << unit_name[len_.unit()]; - + else buffer << len_.value() << unit_name[len_.unit()] << '-' << minus_.value() @@ -139,8 +139,8 @@ LyXLength const & LyXGlueLength::minus() const bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2) { return l1.len() == l2.len() - && l1.plus() == l2.plus() - && l1.minus() == l2.minus(); + && l1.plus() == l2.plus() + && l1.minus() == l2.minus(); }