Skip to content

Commit 97c8cb7

Browse files
committed
Make sure changing color of a group does not reset alpha.
1 parent d9081b0 commit 97c8cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textscreens.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ void TextWindow::EditControlDone(std::string s) {
752752

753753
Group *g = SK.group.FindByIdNoOops(SS.TW.shown.group);
754754
if(!g) break;
755-
g->color = RGBf(rgb.x, rgb.y, rgb.z);
755+
g->color = RgbaColor::FromFloat(rgb.x, rgb.y, rgb.z, g->color.alphaF());
756756

757757
SS.MarkGroupDirty(g->h);
758758
SS.GW.ClearSuper();

0 commit comments

Comments
 (0)