]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFontMetrics.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiFontMetrics.cpp
index de83340cba35f437babc8fcb8c303047c427385d..01c8ce7738df4fe2c63dad5ae2ce2993e20aaf2d 100644 (file)
@@ -177,11 +177,11 @@ int GuiFontMetrics::signedWidth(docstring const & s) const
 }
 
 
-static int const d = Inset::TEXT_TO_INSET_OFFSET / 2;
-
 void GuiFontMetrics::rectText(docstring const & str,
        int & w, int & ascent, int & descent) const
 {
+       static int const d = Inset::TEXT_TO_INSET_OFFSET / 2;
+
        w = width(str) + Inset::TEXT_TO_INSET_OFFSET;
        ascent = metrics_.ascent() + d;
        descent = metrics_.descent() + d;