Fixed initialization bug in Graph;

Added regeneration keyword;
0.3.3 installer

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@377 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-14 20:34:52 +00:00
parent 82f3dc42c7
commit 5f9a7819fe
3 changed files with 10 additions and 6 deletions
+2 -4
View File
@@ -779,12 +779,10 @@ void GraphContainer::add(const GraphP& graph) {
GraphControl::GraphControl(Window* parent, int id)
: wxControl(parent, id)
{
setLayout(GRAPH_TYPE_BAR);
}
{}
void GraphControl::setLayout(GraphType type) {
if (type == layout) return;
if (graph && type == layout) return;
GraphDataP data = graph ? graph->getData() : GraphDataP();
switch (type) {
case GRAPH_TYPE_BAR: {