]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.cpp
Fix bug #12795
[lyx.git] / src / insets / InsetNewline.cpp
index 0e07af13f7ea408493e59499e5c35a97fd85de91..ecfacf47cef19f8e8546454980fea97055021f85 100644 (file)
@@ -19,7 +19,6 @@
 #include "FuncStatus.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
-#include "OutputParams.h"
 #include "output_docbook.h"
 #include "output_xhtml.h"
 #include "texstream.h"
@@ -40,6 +39,15 @@ InsetNewline::InsetNewline() : Inset(nullptr)
 {}
 
 
+int InsetNewline::rowFlags() const
+{
+       if (params_.kind == InsetNewlineParams::LINEBREAK)
+               return AlwaysBreakAfter;
+       else
+           return AlwaysBreakAfter | Flush;
+}
+
+
 void InsetNewlineParams::write(ostream & os) const
 {
        switch (kind) {