SetValue() is now called after the object has been fully initialized.

This fixes bug #495.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17149 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-04-17 13:03:05 +00:00
parent e9aa589659
commit 632ba028c9
1 changed files with 4 additions and 4 deletions

View File

@ -23,6 +23,8 @@
#include <Slider.h>
// Those two functions are also exported by BeOS' libbe.so
rgb_color
_long_to_color_(int32 color)
{
@ -54,8 +56,6 @@ BSlider::BSlider(BRect frame, const char *name, const char *label, BMessage *mes
fMinValue = minValue;
fMaxValue = maxValue;
SetValue(0);
fKeyIncrementValue = 1;
fHashMarkCount = 0;
fHashMarks = B_HASH_MARKS_NONE;
@ -72,6 +72,7 @@ BSlider::BSlider(BRect frame, const char *name, const char *label, BMessage *mes
UseFillColor(false, NULL);
_InitObject();
SetValue(0);
}
@ -89,8 +90,6 @@ BSlider::BSlider(BRect frame, const char *name, const char *label, BMessage *mes
fMinValue = minValue;
fMaxValue = maxValue;
SetValue(0);
fKeyIncrementValue = 1;
fHashMarkCount = 0;
fHashMarks = B_HASH_MARKS_NONE;
@ -106,6 +105,7 @@ BSlider::BSlider(BRect frame, const char *name, const char *label, BMessage *mes
UseFillColor(false, NULL);
_InitObject();
SetValue(0);
}