]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetRef.cpp
Remove InsetRef::isLatex. This no longer needed as we always can access the Buffer...
[features.git] / src / insets / InsetRef.cpp
index f003090cf10bacd0335a7d47435679ce9fd4ea00..aa8d628c9af6cbcee95830bc62812b6b24f62a72 100644 (file)
@@ -35,12 +35,12 @@ namespace lyx {
 
 
 InsetRef::InsetRef(Buffer * buf, InsetCommandParams const & p)
-       : InsetCommand(buf, p, "ref"), isLatex(buf->isLatex())
+       : InsetCommand(buf, p, "ref")
 {}
 
 
 InsetRef::InsetRef(InsetRef const & ir)
-       : InsetCommand(ir), isLatex(ir.isLatex)
+       : InsetCommand(ir)
 {}
 
 
@@ -192,8 +192,8 @@ void InsetRef::updateBuffer(ParIterator const & it, UpdateType)
                }
        }
        label += ref;
-
-       if (!isLatex && !getParam("name").empty()) {
+       
+       if (!buffer().isLatex() && !getParam("name").empty()) {
                label += "||";
                label += getParam("name");
        }