mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user