]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Fix wrong if() in the ScaledPixelBuffer::setSourceBuffer().
authorAdam Tkac <atkac@redhat.com>
Mon, 14 Feb 2011 14:21:16 +0000 (14:21 +0000)
committerAdam Tkac <atkac@redhat.com>
Mon, 14 Feb 2011 14:21:16 +0000 (14:21 +0000)
Resolves #3178498 bug report.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4289 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScaledPixelBuffer.cxx

index 056e5d6d446f1d7cc3641f48e17819620c0b4983..dc6096d7a01a601db2d34356c58e08452ba85182 100644 (file)
@@ -75,7 +75,7 @@ void ScaledPixelBuffer::recreateRowAccum() {
 }
 
 void ScaledPixelBuffer::setSourceBuffer(U8 **src_data_, int w, int h) {
-  if (w > 0 && h > 0 && src_data != NULL) {
+  if (w > 0 && h > 0 && src_data_ != NULL) {
     freeWeightTabs();
     src_data = src_data_;
     src_width  = w;