Project

General

Profile

Bug #1948 ยป WSpinBox-bugfix.patch

Pierluigi Vicinanza, 06/05/2013 05:54 PM

View differences:

src/Wt/WAbstractSpinBox.C
void WAbstractSpinBox::setPrefix(const WString& prefix)
{
prefix_ = prefix;
if (prefix_ != prefix) {
prefix_ = prefix;
setText(textFromValue());
}
}
void WAbstractSpinBox::setSuffix(const WString& suffix)
{
suffix_ = suffix;
if (suffix_ != suffix) {
suffix_ = suffix;
setText(textFromValue());
}
}
void WAbstractSpinBox::render(WFlags<RenderFlag> flags)
src/Wt/WSpinBox.C
value_(-1),
min_(0),
max_(99),
step_(1)
{
step_(1),
valueChanged_(this)
{
setValidator(createValidator());
setValue(0);
}
    (1-1/1)