]> git.lyx.org Git - lyx.git/blobdiff - src/dimension.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / dimension.C
index efe6ec387b727e8629b9495ebf1ab6009af95702..c9a51d37e4f3944ecc52e7a08720382d0fc09454 100644 (file)
@@ -5,14 +5,14 @@
  *
  *  \author André Pönitz
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
-
 #include <config.h>
 
 #include "dimension.h"
-#include "frontends/font_metrics.h"
+
+namespace lyx {
 
 
 void Dimension::operator+=(Dimension const & dim)
@@ -24,10 +24,4 @@ void Dimension::operator+=(Dimension const & dim)
        wid += dim.wid;
 }
 
-
-void Dimension::clear(LyXFont const & font)
-{
-       asc = font_metrics::maxAscent(font);
-       des = font_metrics::maxDescent(font);
-       wid = 0;
-}
+} // namespace lyx