> Index: QLPainter.C
> ===================================================================
> RCS file:
> /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QLPainter.C,v
> retrieving revision 1.35
> diff -u -p -r1.35 QLPainter.C
> --- QLPainter.C 31 Jan 2005 15:26:39 -0000      1.35
> +++ QLPainter.C 27 Apr 2005 09:29:17 -0000
> @@ -171,6 +171,7 @@ void QLPainter::image(int x, int y, int
>                 static_cast<lyx::graphics::QLImage const &>(i);
>  
>         fillRectangle(x, y, w, h, LColor::graphicsbg);
> +       lyxerr << "Drawing an image" << endl;
>         qp_->drawImage(x, y, qlimage.qimage(), 0, 0, w, h);
>  }
> 
> When placing an external xfig object and enabling its graphic display,
> the lyxerr printout is triggered once. Then, when typing characters even
> into paragraphs well below the graphic, _every time_ the printout is
> triggered. That's a lot of drawing work for a single character :-)
> 
> Whan scrolling the graphic to outside the visible window, also the
> printouts disappear.
> 
> Is there an easy way to make the drawing more parsimonious? We used to
> have that and it was horribly complicated, and Andre cleaned it up, as I
> remember. Would it be worth pursuing in this case?

I'm no expert, but aren't we meant to redraw only the 'current' paragraph 
in such situations?

-- 
Angus

Reply via email to