* ======================================================
*
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
: val_(0), unit_(LyXLength::PT)
{
LyXLength tmp;
-
+
if (!isValidLength (data, &tmp))
return; // should raise an exception
}
-bool LyXLength::zero() const
+bool LyXLength::zero() const
{
return val_ == 0.0;
}
// display negative space with text too
double result = 0.0;
int val_sign = val_ < 0.0 ? -1 : 1;
-
+
switch (unit_) {
case LyXLength::SP:
// Scaled point: sp = 1/65536 pt
{
return !(l1 == l2);
}
-