فهرست منبع

*** empty log message ***

David Rose 25 سال پیش
والد
کامیت
42c76273ad
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      panda/src/pnmimagetypes/pnmFileTypeSGIWriter.cxx

+ 2 - 2
panda/src/pnmimagetypes/pnmFileTypeSGIWriter.cxx

@@ -152,8 +152,8 @@ write_header() {
   }
   
   if( sgi_storage_type != STORAGE_VERBATIM ) {
-    table = new TabEntry[_num_channels * _x_size];
-    memset(table, 0, _num_channels * _x_size * sizeof(TabEntry));
+    table = new TabEntry[_num_channels * _y_size];
+    memset(table, 0, _num_channels * _y_size * sizeof(TabEntry));
   }
 
   write_rgb_header(sgi_imagename.c_str());