--- gigedit/trunk/src/gigedit/regionchooser.cpp 2015/01/06 16:08:48 2694 +++ gigedit/trunk/src/gigedit/regionchooser.cpp 2015/01/06 18:11:27 2695 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2014 Andreas Persson + * Copyright (C) 2006-2015 Andreas Persson * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -621,6 +621,13 @@ return 0; } +void RegionChooser::set_region(gig::Region* region) { + this->region = region; + queue_draw(); + region_selected(); + dimensionManager.set_region(region); +} + void RegionChooser::motion_resize_region(int x, int y) { const int w = get_width() - 1;