]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Properly fix handling of title layouts within insets (#11787)
[lyx.git] / src / insets / InsetInclude.cpp
index ba52db91c2d30de45a353bb86a31b962b5c7e6f5..6eba05abde51d319d7ab81cc6cd49e3c4df05c76 100644 (file)
@@ -649,7 +649,7 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
                break;
        }
        case LISTINGS: {
-               // Here, listings and minted have sligthly different behaviors.
+               // Here, listings and minted have slightly different behaviors.
                // Using listings, it is always possible to have a caption,
                // even for non-floats. Using minted, only floats can have a
                // caption. So, with minted we use the following strategy.
@@ -1224,9 +1224,9 @@ string InsetInclude::contextMenuName() const
 }
 
 
-Inset::DisplayType InsetInclude::display() const
+Inset::RowFlags InsetInclude::rowFlags() const
 {
-       return type(params()) == INPUT ? Inline : AlignCenter;
+       return type(params()) == INPUT ? Inline : Display;
 }