Make sure changing color of a group does not reset alpha.

pull/463/head
whitequark 2019-08-12 08:52:51 +00:00
parent d9081b0b08
commit 97c8cb7d71
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ void TextWindow::EditControlDone(std::string s) {
Group *g = SK.group.FindByIdNoOops(SS.TW.shown.group);
if(!g) break;
g->color = RGBf(rgb.x, rgb.y, rgb.z);
g->color = RgbaColor::FromFloat(rgb.x, rgb.y, rgb.z, g->color.alphaF());
SS.MarkGroupDirty(g->h);
SS.GW.ClearSuper();