Update of /cvsroot/hugin/hugin/src/hugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2467
Modified Files:
ImagesPanel.cpp
Log Message:
I'm sorry. I was wrong... putting it back to the previous version
Index: ImagesPanel.cpp
===================================================================
RCS file: /cvsroot/hugin/hugin/src/hugin/ImagesPanel.cpp,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- ImagesPanel.cpp 30 Mar 2005 10:54:30 -0000 1.79
+++ ImagesPanel.cpp 30 Mar 2005 13:03:54 -0000 1.80
@@ -454,8 +454,7 @@
// we need to resize it to its maximum size every time before
// a new image is set, else it will keep the old size..
// however, I'm not sure how this should be done with wxWindows
-
-#ifdef USE_WX25x // images_selected_image_panel only exists in 2.5 xrc file.
+
// get size from parent panel (its just there, to provide the size..
wxPanel * imgctrlpanel = XRCCTRL(*this, "images_selected_image_panel", wxPanel);
DEBUG_ASSERT(imgctrlpanel);
@@ -468,11 +467,6 @@
#endif
wxStaticBitmap * imgctrl = XRCCTRL(*this, "images_selected_image", wxStaticBitmap);
DEBUG_ASSERT(imgctrl);
-#else
- wxStaticBitmap * imgctrl = XRCCTRL(*this, "images_selected_image", wxStaticBitmap);
- DEBUG_ASSERT(imgctrl);
- wxSize sz = imgctrl->GetSize();
-#endif
const wxImage * img = ImageCache::getInstance().getSmallImage(
pano.getImage(imgNr).getFilename());
|