From 06afc063b8538b90b8dd8eb662a9ae0e11812963 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 16 Jun 2005 01:29:37 +0000 Subject: Fixed window resizing to work properly, and on all edges and corners. --- src/gui/itemcontainer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/itemcontainer.cpp') diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index 2cc6b8e2..cdf77436 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -64,6 +64,12 @@ void ItemContainer::draw(gcn::Graphics* graphics) int x, y; getAbsolutePosition(x, y); + // Have at least 1 column + if (columns < 1) + { + columns = 1; + } + // Reset selected item when quantity not above 0 (should probably be made // sure somewhere else) if (items[selectedItem].quantity <= 0) -- cgit v1.2.3-70-g09d2