]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetindex.C
index 73e24fc274cd33888ad47537b4dda7edae71e77c..486aeb23111eb845002f76c2d95d5f78f60f3c40 100644 (file)
@@ -10,6 +10,9 @@
 #include "frontends/Dialogs.h"
 #include "LaTeXFeatures.h"
 #include "gettext.h"
+#include "support/LOstream.h"
+
+using std::ostream;
 
 InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
        : InsetCommand(p)
@@ -24,7 +27,7 @@ string const InsetIndex::getScreenLabel(Buffer const *) const
 
 void InsetIndex::edit(BufferView * bv, int, int, unsigned int)
 {
-       bv->owner()->getDialogs()->showIndex( this );
+       bv->owner()->getDialogs()->showIndex(this);
 }
 
 
@@ -59,7 +62,7 @@ string const InsetPrintIndex::getScreenLabel(Buffer const *) const
 
 void InsetPrintIndex::validate(LaTeXFeatures & features) const
 {
-       features.makeidx = true;
+       features.require("makeidx");
 }