diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-16 01:29:37 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-16 01:29:37 +0000 |
commit | 06afc063b8538b90b8dd8eb662a9ae0e11812963 (patch) | |
tree | fbae681cc37ebac36a1ededa7a292d5ec8505842 /src/gui/itemcontainer.cpp | |
parent | cf0b73ed23fa2213521c23fcd927aab37151a484 (diff) | |
download | mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.tar.gz mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.tar.bz2 mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.tar.xz mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.zip |
Fixed window resizing to work properly, and on all edges and corners.
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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) |