]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insethfill.C
index 20d179a485a7999dc52e360547d5f4bef17e0360..defc3c011bdb2a1026fe4be825bbc8bbc11bb725 100644 (file)
@@ -32,12 +32,14 @@ std::auto_ptr<InsetBase> InsetHFill::doClone() const
 }
 
 
-void InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
+bool InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
 {
        dim.wid = 3;
        dim.asc = 3;
        dim.des = 3;
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }
 
 
@@ -47,19 +49,11 @@ docstring const InsetHFill::getScreenLabel(Buffer const &) const
 }
 
 
-int InsetHFill::latex(Buffer const &, odocstream & os,
-                     OutputParams const &) const
-{
-       os << getCommand() << "{}";
-       return 0;
-}
-
-
 int InsetHFill::plaintext(Buffer const &, odocstream & os,
-                     OutputParams const &) const
+                          OutputParams const &) const
 {
-       os << '\t';
-       return 0;
+       os << "     ";
+       return 5; 
 }