]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ControlDocument.cpp
This is one of a series of patches that will merge the layout modules development...
[features.git] / src / frontends / controllers / ControlDocument.cpp
index 3eabeed4415159e127c70c044a361f765cfb2562..e7452ac2bee98e80625a877d301c415c7bd430a2 100644 (file)
@@ -87,7 +87,7 @@ BufferId ControlDocument::id() const
 
 TextClass const & ControlDocument::textClass() const
 {
-       return textclasslist[bp_->textclass];
+       return textclasslist[bp_->getBaseClass()];
 }
 
 
@@ -113,8 +113,8 @@ void ControlDocument::dispatchParams()
 
        // Set the document class.
        textclass_type const old_class =
-               kernel().buffer().params().textclass;
-       textclass_type const new_class = bp_->textclass;
+               kernel().buffer().params().getBaseClass();
+       textclass_type const new_class = bp_->getBaseClass();
        if (new_class != old_class) {
                string const name = textclasslist[new_class].name();
                kernel().dispatch(FuncRequest(LFUN_TEXTCLASS_APPLY, name));