]> 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 ab374347c315b3dd434c977383d416e50ab5b5b7..c9a51d37e4f3944ecc52e7a08720382d0fc09454 100644 (file)
@@ -11,7 +11,8 @@
 #include <config.h>
 
 #include "dimension.h"
-#include "frontends/FontMetrics.h"
+
+namespace lyx {
 
 
 void Dimension::operator+=(Dimension const & dim)
@@ -23,11 +24,4 @@ void Dimension::operator+=(Dimension const & dim)
        wid += dim.wid;
 }
 
-
-void Dimension::clear(LyXFont const & font)
-{
-       lyx::frontend::FontMetrics const & fm = theFontMetrics(font);
-       asc = fm.maxAscent();
-       des = fm.maxDescent();
-       wid = 0;
-}
+} // namespace lyx