]> git.lyx.org Git - features.git/commitdiff
insetpagebreak: fix screen representation & ascii output
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 1 Nov 2003 14:09:35 +0000 (14:09 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 1 Nov 2003 14:09:35 +0000 (14:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8012 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetpagebreak.C

index bbed2435c8a99d044c42a962abfcf567b86c419f..d51eb8f2a43468ed5d671136d128eee1eb39bafb 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-01  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * insetpagebreak.C: fix screen representation & ascii output.
+
 2003-11-01  Alfredo Braunstein  <abraunst@libero.it>
 
        * inset.[Ch]: 
index 2d169d8232a747e2fa3fd1974b329851f555d6c1..9521a4a04ae0a6dfd35ec18d6592c24948169c1d 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file insetline.C
+ * \file insetpagebreak.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -49,8 +49,6 @@ void InsetPagebreak::metrics(MetricsInfo & mi, Dimension & dim) const
 void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
 {
        static std::string const label = _("Page Break");
-       pi.pain.line(x, y, x + dim_.wid, y, LColor::topline, Painter::line_solid,
-                       Painter::line_thick);
 
        LyXFont font;
        font.setColor(LColor::pagebreak);
@@ -85,7 +83,7 @@ int InsetPagebreak::latex(Buffer const &, ostream & os,
 int InsetPagebreak::ascii(Buffer const &, ostream & os,
                          LatexRunParams const &) const
 {
-       os << "-------------------------------------------";
+       os << '\n';
        return 0;
 }