* 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:
Stephan Aßmus 2006-07-13 12:51:07 +00:00
parent 96c52f75e4
commit 976ba53424

View File

@ -184,6 +184,8 @@ StyleView::ObjectChanged(const Observable* object)
if (*fGradient != *controlGradient) {
fGradientControl->SetGradient(fGradient);
_MarkType(fGradientType->Menu(), fGradient->Type());
// transfer the current gradient color to the current color
_TransferGradientStopColor();
}
} else if (object == fStyle) {
// maybe the gradient was added or removed