* don't loose sync of the current color in case
gradient stop changes color for some reason git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -184,6 +184,8 @@ StyleView::ObjectChanged(const Observable* object)
|
|||||||
if (*fGradient != *controlGradient) {
|
if (*fGradient != *controlGradient) {
|
||||||
fGradientControl->SetGradient(fGradient);
|
fGradientControl->SetGradient(fGradient);
|
||||||
_MarkType(fGradientType->Menu(), fGradient->Type());
|
_MarkType(fGradientType->Menu(), fGradient->Type());
|
||||||
|
// transfer the current gradient color to the current color
|
||||||
|
_TransferGradientStopColor();
|
||||||
}
|
}
|
||||||
} else if (object == fStyle) {
|
} else if (object == fStyle) {
|
||||||
// maybe the gradient was added or removed
|
// maybe the gradient was added or removed
|
||||||
|
|||||||
Reference in New Issue
Block a user