}
-grfx::Params const & GraphicInset::params() const
-{
- return params_;
-}
-
-
bool GraphicInset::hasFileChanged() const
{
unsigned long const new_checksum = loader_.checksum();
}
-void GraphicInset::view(BufferView * bv) const
-{
- if (bv)
- view_ = bv->owner()->view();
-}
-
-
BufferView * GraphicInset::view() const
{
return view_.lock().get();
void GraphicInset::draw(PainterInfo & pi, int x, int y) const
{
- // Cache the BufferView.
- view(pi.base.bv);
+ if (pi.base.bv)
+ view_ = pi.base.bv->owner()->view();
#if 0
// Comment this out and see if anything goes wrong.