Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /core/vil/vil_image_view.txx [c7bc9e] .. [20a6d9] Maximize Restore

  Switch to side-by-side view

--- a/core/vil/vil_image_view.txx
+++ b/core/vil/vil_image_view.txx
@@ -25,6 +25,7 @@
 #include <vcl_cmath.h>
 #include <vcl_ostream.h>
 #include <vil/vil_pixel_format.h>
+#include <vil/vil_exception.h>
 #include <vcl_cstring.h>
 #include <vcl_algorithm.h>
 
@@ -543,6 +544,8 @@
   if (convert_planes_from_components(*this, rhs))
     return *this;
 
+  vil_exception_warning(vil_exception_pixel_formats_incompatible(
+    rhs.pixel_format(), this->pixel_format(), "vil_image_view::operator =") );
   set_to_memory(0, 0, 0, 0, 0, 0, 0);
   return *this;
 }