projects
/
cs356-p1-elevator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd0a54
)
Fix ElevatorGUI's Gtk::Table
author
Ira W. Snyder
<devel@irasnyder.com>
Tue, 9 Oct 2007 20:59:20 +0000
(13:59 -0700)
committer
Ira W. Snyder
<devel@irasnyder.com>
Tue, 9 Oct 2007 20:59:20 +0000
(13:59 -0700)
The table was being initialized with the wrong number of elements. It's
row, then col.
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
elevatorgui.cpp
patch
|
blob
|
history
diff --git
a/elevatorgui.cpp
b/elevatorgui.cpp
index
4ca5fe9
..
51c14cb
100644
(file)
--- a/
elevatorgui.cpp
+++ b/
elevatorgui.cpp
@@
-13,7
+13,7
@@
ElevatorGUI::ElevatorGUI (int floors, int elevators)
, timer_()
/* GUI Elements */
- , table_(floors+
1, elevators+2
)
+ , table_(floors+
3, elevators+1
)
, button_playpause_(Gtk::Stock::MEDIA_PLAY)
, button_stop_(Gtk::Stock::STOP)
, button_quit_(Gtk::Stock::QUIT)