aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/ScaledPixelBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/ScaledPixelBuffer.cxx')
-rw-r--r--common/rfb/ScaledPixelBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ScaledPixelBuffer.cxx b/common/rfb/ScaledPixelBuffer.cxx
index e45274e4..cd373387 100644
--- a/common/rfb/ScaledPixelBuffer.cxx
+++ b/common/rfb/ScaledPixelBuffer.cxx
@@ -111,7 +111,7 @@ void ScaledPixelBuffer::setScaleFilter(unsigned int scaleFilterID_) {
freeWeightTabs();
scaleFilters.makeWeightTabs(scaleFilterID, src_width, scaled_width, &xWeightTabs);
scaleFilters.makeWeightTabs(scaleFilterID, src_height, scaled_height, &yWeightTabs);
- if (scale != 100 && pf.depth > 0) scaleRect(Rect(0, 0, src_width, src_height));
+ if (scale != 100 && pf.depth > 0 && scaled_data) scaleRect(Rect(0, 0, src_width, src_height));
}
}