On Fri, Dec 14, 2001 at 08:42:32AM +0100, Michael Schmitt wrote:

> Place a paragraph that is aligned to the right and has a line above into 
> a minipage -> the line is not drawn correctly
> (in order to observe this, there must be some text in front/after the 
> minipage and the size of the minipage should be set to 50% of page width)

fix attached (thanks for the good report)

regards
john
 
-- 
"Of all manifestations of power, restraint impresses the most."
        - Thucydides
Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.457
diff -u -r1.457 ChangeLog
--- src/ChangeLog       2001/12/12 12:07:38     1.457
+++ src/ChangeLog       2001/12/14 09:05:24
@@ -1,3 +1,7 @@
+2001-12-14  John Levon  <[EMAIL PROTECTED]>
+
+       * text.C: fix line above/below drawing in insets
+
 2001-12-12  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
        * lyxlength.[Ch] (operator!=): new function
Index: src/text.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text.C,v
retrieving revision 1.213
diff -u -r1.213 text.C
--- src/text.C  2001/12/12 09:56:00     1.213
+++ src/text.C  2001/12/14 09:05:33
@@ -3333,8 +3333,8 @@
                y_top += asc;
  
                int const w = (inset_owner ?  inset_owner->width(p.bv, font) : ww);
-               int const xp = static_cast<int>(inset_owner ? p.x : 0);
-               p.pain->line(xp, p.yo + y_top, w, p.yo + y_top,
+               int const xp = static_cast<int>(inset_owner ? p.xo : 0);
+               p.pain->line(xp, p.yo + y_top, xp + w, p.yo + y_top,
                        LColor::topline, Painter::line_solid,
                        Painter::line_thick);
                
@@ -3493,9 +3493,9 @@
                y_bottom -= asc;
  
                int const w = (inset_owner ?  inset_owner->width(p.bv, font) : ww);
-               int const xp = static_cast<int>(inset_owner ? p.x : 0);
+               int const xp = static_cast<int>(inset_owner ? p.xo : 0);
                int const y = p.yo + y_bottom; 
-               p.pain->line(xp, y, w, y, LColor::topline, Painter::line_solid,
+               p.pain->line(xp, y, xp + w, y, LColor::topline, Painter::line_solid,
                          Painter::line_thick);
  
                y_bottom -= asc;

Reply via email to