update color at picking and cleanup code from some warnings

This commit is contained in:
2019-03-11 15:35:59 +01:00
parent 373e7ad0e9
commit fda399f7dd
16 changed files with 56 additions and 63 deletions

View File

@@ -126,7 +126,7 @@ void NodePanelLayer::init()
auto num = m[2].str();
int count = atoi(num.c_str()) + 1;
char tmp[128];
sprintf(tmp, "%s%0*d", m[1].str().c_str(), num.length(), count);
sprintf(tmp, "%s%0*d", m[1].str().c_str(), (int)num.length(), count);
next = tmp;
}
int source_index = m_layers_container->get_child_index(m_current_layer);