]> git.lyx.org Git - lyx.git/blobdiff - src/dimension.C
* GuiView.C (updateTab): do not update early if current tab has
[lyx.git] / src / dimension.C
index c1bb59540527e378815ebf3e93aba645a809ab8d..c9a51d37e4f3944ecc52e7a08720382d0fc09454 100644 (file)
@@ -11,7 +11,8 @@
 #include <config.h>
 
 #include "dimension.h"
-#include "frontends/font_metrics.h"
+
+namespace lyx {
 
 
 void Dimension::operator+=(Dimension const & dim)
@@ -23,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