Skip to content

Commit 84c0686

Browse files
committed
Fix color conversion
1 parent daeee7f commit 84c0686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Interface/Modules/Visualization/ShowFieldDialog.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,5 @@ void ShowFieldDialog::assignDefaultMeshColor()
142142

143143
void ShowFieldDialog::pushColor()
144144
{
145-
state_->setValue(ShowFieldModule::DefaultMeshColor, ColorRGB(defaultMeshColor_.red(), defaultMeshColor_.green(), defaultMeshColor_.blue()).toString());
145+
state_->setValue(ShowFieldModule::DefaultMeshColor, ColorRGB(defaultMeshColor_.red() / 255.0, defaultMeshColor_.green() / 255.0, defaultMeshColor_.blue() / 255.0).toString());
146146
}

0 commit comments

Comments
 (0)