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