프로젝트

일반

사용자정보

개정판 4076155d

ID4076155de35b323cb6632c0a267c13b3ee146320
상위 c2155b1e
하위 39a9f399

함의성이(가) 약 5년 전에 추가함

issue #563: fix line no tracer

Change-Id: I079975bb8d412c0c383748f16185c42dddac0870

차이점 보기:

DTI_PID/DTI_PID/LineNoTracer.py
200 200
                    lineno.conns.clear()
201 201
                    minDist = None
202 202
                    startLine = None
203
                    if len(lineno.runs) is 0:
204
                        continue
203 205
                    for line in [line for line in lineno.runs[0].items if type(line) is QEngineeringLineItem and (line._lineType == 'Primary' or line._lineType == 'Secondary' or line._lineType == 'Connect To Process')]:
204 206
                        dist = line.distanceTo((lineno.center().x(), lineno.center().y()))
205 207
                        if (minDist is None) or (dist < minDist):
......
268 270
        from EngineeringEquipmentItem import QEngineeringEquipmentItem
269 271
        from SymbolSvgItem import SymbolSvgItem
270 272

  
273
        if start.owner is not None:
274
            return []
271 275
        visited = [start]
272 276

  
273 277
        try:
DTI_PID/DTI_PID/SymbolEditorDialog.py
955 955
        EXCEPTION_MSG_DUPLICATED_FORMAT = self.tr('Already exist data {}.')
956 956
        infoTitle = ""
957 957

  
958
        if not self.ui.nameLineEdit.text():
958
        if not self.ui.nameLineEdit.text() or self.ui.nameLineEdit.text().find('/') is not -1:
959 959
            infoTitle = self.ui.nameLabel.text()
960 960
            return (False, EXCEPTION_MSG_FORMAT.format(infoTitle))
961 961

  

내보내기 Unified diff

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