diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-10 17:55:02 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-10 17:55:02 +0200 |
commit | 2ce2788ed14cb86b2235ae00e5012689210a557c (patch) | |
tree | ecd97c7bf6a5666a28ff79d053ef9201dc343377 /src | |
parent | 5d642d53d11b3a5498748237566166be3d68746a (diff) |
Fix missing default value on canvas yscale.
Diffstat (limited to 'src')
-rw-r--r-- | src/canvaswidget.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/canvaswidget.cc b/src/canvaswidget.cc index 35b3684..c0e0b88 100644 --- a/src/canvaswidget.cc +++ b/src/canvaswidget.cc @@ -47,9 +47,11 @@ CanvasWidget::CanvasWidget(QWidget *parent) g->addWidget(yoffset, 0, 1); yscale = new ZoomSlider(Qt::Vertical); - yscale->setRange(0.9, 30); + yscale->setRange(0.5, 30); yscale->setTickWidth(0.1); connect(yscale, SIGNAL(valueChanged(float)), this, SLOT(setYScale(float))); + yscale->setValue(0.5); + setYScale(0.5); g->addWidget(yscale, 0, 2); xoffset = new QScrollBar(Qt::Horizontal); |