]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed the checking for the scale filter index.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Mon, 20 Nov 2006 15:14:07 +0000 (15:14 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Mon, 20 Nov 2006 15:14:07 +0000 (15:14 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2116 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScaleFilters.cxx

index 28fa24f981f378c034320c9e4f258399832f8d1d..4782adde4b5fe382033dc7f1588bb7f3c2b1c8df 100644 (file)
@@ -67,7 +67,7 @@ double sinc(double x) {
 //\r
 \r
 SFilter &ScaleFilters::operator[](unsigned int filter_id) {\r
-  assert(filter_id < scaleFilterMaxNumber);\r
+  assert(filter_id <= scaleFilterMaxNumber);\r
   return filters[filter_id];\r
 }\r
 \r