]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listbkg.cpp
Don't select all if there is nothing to select.
[wxWidgets.git] / src / generic / listbkg.cpp
index 96eed8b9556b7f1c8920594a78ecc2d0e0281b3e..e7dd71235d75033d4d0aaffee3fd294fb552946d 100644 (file)
@@ -298,9 +298,9 @@ bool wxListbook::SetPageImage(size_t n, int imageId)
 
 void wxListbook::SetImageList(wxImageList *imageList)
 {
+#ifdef CAN_USE_REPORT_VIEW
     wxListView * const list = GetListView();
 
-#ifdef CAN_USE_REPORT_VIEW
     // If imageList presence has changed, we update the list control view
     if ( (imageList != NULL) != (GetImageList() != NULL) )
     {