]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed compilation of sources that make use of wx/univ/notebook.h.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 23 Aug 2011 02:18:41 +0000 (02:18 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 23 Aug 2011 02:18:41 +0000 (02:18 +0000)
wxUniv's wxNotebook was accessing m_imageList which now is a private in wxWithImages since r68809. Fixed by using wxWithImages::HasImageList.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/univ/notebook.h

index cf982afe6cd01dfb90353d91a8078e9110323661..81fa7bf3a091281ec013a0faaa556da3d0d62b92 100644 (file)
@@ -188,7 +188,7 @@ protected:
 
     // return true if the tab has an associated image
     bool HasImage(int page) const
-        { return m_imageList && m_images[page] != -1; }
+        { return HasImageList() && m_images[page] != -1; }
 
     // get the part of the notebook reserved for the pages (slightly larger
     // than GetPageRect() as we draw a border and leave marginin between)