I think I found the problem, at least at my pc. I am using Hungarian localization on the machine, and so the numbers are written in eg. 2,5 form instead of 2.5 by default.
So, when the gamma values are given in a list in this form (line 431):
self.availabletargetgammas = [unicode(i18n('1.4')),unicode(i18n('1.6')),unicode(i18n('1.8')),unicode(i18n('2.0')),unicode(i18n('2.2')),unicode(i18n('2.4'))]
all the dots are changed to commas because of the localization procedure. In line 1028, however the program searches for a simple string, without localization:
t = self.config.readEntry("targetgamma","2.0")
and later in line 1034:
t = '2.0'
The problem can be solved either by removing i18n from line 431 or by adding it also to lines 1028 and 1034 to get:
t = self.config.readEntry("targetgamma",unicode(i18n("2.0")))
and
t = unicode(i18n('2.0'))
respectively.
I think I found the problem, at least at my pc. I am using Hungarian localization on the machine, and so the numbers are written in eg. 2,5 form instead of 2.5 by default. argetgammas = [unicode( i18n('1. 4')),unicode( i18n('1. 6')),unicode( i18n('1. 8')),unicode( i18n('2. 0')),unicode( i18n('2. 2')),unicode( i18n('2. 4'))]
So, when the gamma values are given in a list in this form (line 431):
self.availablet
all the dots are changed to commas because of the localization procedure. In line 1028, however the program searches for a simple string, without localization: readEntry( "targetgamma" ,"2.0")
t = self.config.
and later in line 1034:
t = '2.0'
The problem can be solved either by removing i18n from line 431 or by adding it also to lines 1028 and 1034 to get: readEntry( "targetgamma" ,unicode( i18n("2. 0"))) i18n('2. 0'))
t = self.config.
and
t = unicode(
respectively.