"Jean-Marc Lasgouttes" <[EMAIL PROTECTED]>
wrote in message news:[EMAIL PROTECTED]
> The 3.2.1nc value is strange. It may be related to the QFontMetrics
> change I just mentioned elsewhere in this thread. It may be that qt
> 3.2.x is not usable for us in windows, or that we have to translate
> the values (one always have bottom-top=10 in this case).
>

This does the translation, in the right way I hope:

--- qfont_metrics.C     2003-02-14 12:22:48.000000000 +0100
+++ lyx-1.3.5/src/frontends/qt2/qfont_metrics.C 2005-01-06
15:11:03.518632000 +0100
@@ -68,7 +68,11 @@
        if (!lyxrc.use_gui)
                return 1;
        QRect const & r = metrics(f).boundingRect(c);
+#if defined(Q_WS_WIN) && (QT_VERSION == 0x030201)
+       return -r.bottom()-1;
+#else
        return -r.top();
+#endif
 }


@@ -77,7 +81,11 @@
        if (!lyxrc.use_gui)
                return 1;
        QRect const & r = metrics(f).boundingRect(c);
+#if defined(Q_WS_WIN) && (QT_VERSION == 0x030201)
+       return 2*r.bottom()-r.top()+2;
+#else
        return r.bottom()+1;
+#endif
 }

Ruurd



Reply via email to