aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-04 10:56:26 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-04 10:56:26 -0300
commitd66945f3c92cb54389984df807d6aa60f0ddb237 (patch)
tree26bd904c0615845b5746d5094fe527941d3ef8e8
parentefc9d5f002dc3d037de81a9a183cd5d6b07f3f7d (diff)
[mq]: out
-rw-r--r--dw/fltkimgbuf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/fltkimgbuf.cc b/dw/fltkimgbuf.cc
index b8beb1cb..c9571a13 100644
--- a/dw/fltkimgbuf.cc
+++ b/dw/fltkimgbuf.cc
@@ -175,7 +175,7 @@ void FltkImgbuf::newScan ()
core::Imgbuf* FltkImgbuf::getScaledBuf (int width, int height)
{
- if (root)
+ if (!isRoot())
return root->getScaledBuf (width, height);
if (width == this->width && height == this->height) {
@@ -293,7 +293,7 @@ int FltkImgbuf::scaledY(int ySrc)
}
void FltkImgbuf::draw (::fltk::Widget *target, int xRoot, int yRoot,
- int x, int y, int width, int height)
+ int x, int y, int width, int height)
{
// TODO (i): Implementation.
// TODO (ii): Clarify the question, whether "target" is the current widget