개정판 4076155d
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