Fix initialization of some attrs in GraphView

This commit is contained in:
Florian Märkl 2018-06-26 22:23:10 +02:00
parent a076b2ef7b
commit 2d98943c13

View File

@ -136,16 +136,16 @@ private:
void adjustGraphLayout(GraphBlock &block, int col, int row); void adjustGraphLayout(GraphBlock &block, int col, int row);
// Layout type // Layout type
LayoutType layoutType; LayoutType layoutType = LayoutType::Medium;
int width; int width = 0;
int height; int height = 0;
bool ready; bool ready = false;
// Scrolling data // Scrolling data
int scroll_base_x; int scroll_base_x = 0;
int scroll_base_y; int scroll_base_y = 0;
bool scroll_mode; bool scroll_mode = false;
// Todo: remove charheight/charwidth cause it should be handled in child class // Todo: remove charheight/charwidth cause it should be handled in child class