Skip to content

Commit 8f6f8ed

Browse files
travishsuwkentaro
authored andcommitted
fix slider_contrast repeated with brightness
1 parent 5b9be06 commit 8f6f8ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

labelme/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,11 +1384,11 @@ def brightnessContrast(self, value):
13841384
if brightness is not None:
13851385
dialog.slider_brightness.setValue(brightness)
13861386
if contrast is not None:
1387-
dialog.slider_brightness.setValue(contrast)
1387+
dialog.slider_contrast.setValue(contrast)
13881388
dialog.exec_()
13891389

13901390
brightness = dialog.slider_brightness.value()
1391-
contrast = dialog.slider_brightness.value()
1391+
contrast = dialog.slider_contrast.value()
13921392
self.brightnessContrast_values[self.filename] = (brightness, contrast)
13931393

13941394
def togglePolygons(self, value):
@@ -1514,7 +1514,7 @@ def loadFile(self, filename=None):
15141514
if brightness is not None:
15151515
dialog.slider_brightness.setValue(brightness)
15161516
if contrast is not None:
1517-
dialog.slider_brightness.setValue(contrast)
1517+
dialog.slider_contrast.setValue(contrast)
15181518
self.brightnessContrast_values[self.filename] = (brightness, contrast)
15191519
if brightness is not None or contrast is not None:
15201520
dialog.onNewValue(None)

0 commit comments

Comments
 (0)