]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpace.cpp
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / src / insets / InsetSpace.cpp
index b8cab16fd0ed3f963082aec36bd211c738a30c53..6ab6f9a8d75766055b64657f699e164bd54c912e 100644 (file)
@@ -200,9 +200,10 @@ int const arrow_size = 8;
 void InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        if (isHfill()) {
-               // The metrics for this kinds are calculated externally in
-               // \c TextMetrics::computeRowMetrics. Those are dummy value:
-               dim = Dimension(10, 10, 10);
+               // The width for hfills is calculated externally in
+               // TextMetrics::computeRowMetrics. The value of 5 is the
+               // minimal value when the hfill is not active.
+               dim = Dimension(5, 10, 10);
                return;
        }