From: joncruz Date: Sun, 5 Mar 2006 06:09:33 +0000 (+0000) Subject: work-around for older gtkmm versions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8d5b4140940ede3d1b30c1784171b1331f84b02;p=inkscape.git work-around for older gtkmm versions --- diff --git a/src/ui/previewholder.cpp b/src/ui/previewholder.cpp index f809ba44c..b89e68adc 100644 --- a/src/ui/previewholder.cpp +++ b/src/ui/previewholder.cpp @@ -206,7 +206,7 @@ void PreviewHolder::calcGridSize( const Gtk::Widget* thing, int itemCount, int& } Gtk::Requisition req2; - thing->size_request(req2); + const_cast(thing)->size_request(req2); int h2 = req.height / req2.height; int w2 = req.width / req2.width;