]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetSpace.cpp
Regenerate previews after zoom (#11919)
[features.git] / src / insets / InsetSpace.cpp
index 86c867042064d884765d5961eb01c074b493be3d..3f86eb8c074cf1c1775b6ca50c920d72e3fa85fc 100644 (file)
@@ -33,6 +33,7 @@
 #include "support/lassert.h"
 #include "support/Length.h"
 #include "support/lstrings.h"
+#include "support/qstring_helpers.h"
 
 #include "frontends/Application.h"
 #include "frontends/FontMetrics.h"
@@ -130,12 +131,12 @@ docstring InsetSpace::toolTip(BufferView const &, int, int) const
        case InsetSpaceParams::CUSTOM:
                // FIXME unicode
                message = support::bformat(_("Horizontal Space (%1$s)"),
-                               from_ascii(params_.length.asString()));
+                                          locLengthDocString(from_ascii(params_.length.asString())));
                break;
        case InsetSpaceParams::CUSTOM_PROTECTED:
                // FIXME unicode
                message = support::bformat(_("Non-Breaking Horizontal Space (%1$s)"),
-                               from_ascii(params_.length.asString()));
+                                          locLengthDocString(from_ascii(params_.length.asString())));
                break;
        }
        return message;