프로젝트

일반

사용자정보

개정판 0e300012

ID0e300012c6335458b68c81bc6f3f64757d8ab697
상위 c608cccf
하위 b76d86af, bcfd2219, 4e630522, 59733631

gaqhf 이(가) 6년 이상 전에 추가함

dev issue #581: fix bug

차이점 보기:

DTI_PID/DTI_PID/QResultPropertyTableWidget.py
271 271
        self.setItem(0, 0, lineNoTitleItem)
272 272
        self.setItem(0, 1, QTableWidgetItem(lineNoItem.text()))
273 273

  
274
        attrs = lineNoItem.getLineNoAttributes()
275
        if attrs is not None:
276
            attrItems = list(attrs.items())
274
        attrItems = lineNoItem.getLineNoAttributes()
275
        if attrItems is not None:
277 276
            for index in range(len(attrItems)):
278 277
                key = attrItems[index][0]
279 278
                value = attrItems[index][1]
DTI_PID/DTI_PID/Shapes/QEngineeringTextItem.py
236 236
                    kyouho 2018.07.06 add using TextItemFactory.isLineNo method
237 237
    '''
238 238
    def getLineNoAttributes(self):
239
        res = {}
239
        res = []
240 240

  
241 241
        try:
242 242
            docData = AppDocData.instance()
......
257 257
                for i in range(len(configs)):
258 258
                    if configs[i] == delimiter:
259 259
                        continue
260
                    res[configs[i]] = result[i]
260
                    res.append((configs[i], result[i]))
261 261

  
262 262
        except Exception as ex:
263 263
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)