]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
Remove the XOpenIM test as lyxlookup.C has been buried.
[lyx.git] / src / bufferview_funcs.C
index b7b0d17a7d894e02425fd4892dc823b19f64818c..bb7678b51847eb2a11091c9368e92bf78ba6cac1 100644 (file)
@@ -159,12 +159,22 @@ string const currentState(BufferView * bv)
                buffer->params.getLyXTextClass().defaultfont();
        font.reduce(defaultfont);
 
+#if USE_BOOST_FORMAT
        state << boost::format(_("Font: %1$s")) % font.stateText(&buffer->params);
+#else
+       state << _("Font: ") << font.stateText(&buffer->params);
+#endif
 
        // The paragraph depth
        int depth = text->getDepth();
-       if (depth > 0)
+       if (depth > 0) {
+#if USE_BOOST_FORMAT
                state << boost::format(_(", Depth: %1$d")) % depth;
+#else
+               state << _(", Depth: ") << depth;
+#endif
+       }
+
 
        // The paragraph spacing, but only if different from
        // buffer spacing.
@@ -186,7 +196,7 @@ string const currentState(BufferView * bv)
                case Spacing::Other:
                        state << _("Other (")
                              << text->cursor.par()->params().spacing().getValue()
-                             << ")";
+                             << ')';
                        break;
                case Spacing::Default:
                        // should never happen, do nothing