]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.cpp
Some things did not need to be mutable after all
[lyx.git] / src / insets / InsetRef.cpp
index c85f16699a31f7884b40a28d305051ae594052a1..146a85dd492ed2740eda08852e9b2577d3b75547 100644 (file)
@@ -23,6 +23,7 @@
 #include "output_xhtml.h"
 #include "ParIterator.h"
 #include "sgml.h"
+#include "texstream.h"
 #include "TocBackend.h"
 
 #include "support/debug.h"
@@ -289,7 +290,7 @@ void InsetRef::updateBuffer(ParIterator const & it, UpdateType)
        }
        
        unsigned int const maxLabelChars = 24;
-       if (screen_label_.size() > maxLabelChars) {
+       if (label.size() > maxLabelChars) {
                tooltip_ = label;
                support::truncateWithEllipsis(label, maxLabelChars);
        } else
@@ -354,7 +355,7 @@ InsetRef::type_info const InsetRef::types[] = {
        { "vpageref",  N_("Textual Page Number"),   N_("TextPage: ")},
        { "vref",      N_("Standard+Textual Page"), N_("Ref+Text: ")},
        { "formatted", N_("Formatted"),             N_("Format: ")},
-       { "nameref",   N_("Reference to Name"),     N_("NameRef:")},
+       { "nameref",   N_("Reference to Name"),     N_("NameRef: ")},
        { "", "", "" }
 };