Skip to content

Commit

Permalink
Fixed bug. Bring opacity back to a percent value.
Browse files Browse the repository at this point in the history
svn path=/trunk/koffice/; revision=151034
  • Loading branch information
Patrick Julien committed Apr 21, 2002
1 parent d6b7e4b commit 304fc2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion krita/ui/kis_dlg_paint_properties.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <knuminput.h>

#include "kis_dlg_paint_properties.h"
#include "kis_global.h"
#include "kis_paint_device.h"
#include "integerwidget.h"

Expand All @@ -45,7 +46,7 @@ KisPaintPropertyDlg::KisPaintPropertyDlg(const QString& deviceName, int opacity,
layout -> addWidget(lbl, 0, 0);

m_opacity = new IntegerWidget(0, 100, this);
m_opacity -> setValue(opacity);
m_opacity -> setValue(opacity * 100 / CHANNEL_MAX);
m_opacity -> setTickmarks(QSlider::Below);
m_opacity -> setTickInterval(13);
layout -> addWidget(m_opacity, 1, 1);
Expand Down

0 comments on commit 304fc2e

Please sign in to comment.