개정판 8eb91130
issue #000: fix text cad
Change-Id: I5daa31112fed57b14fb94d36b4f4bfc4f06f7081
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
1012 | 1012 |
text = text_node.text |
1013 | 1013 |
angle = round(float(text_node.attrib['Angle']), 2) |
1014 | 1014 |
|
1015 |
_height = round(float(text_node.attrib['Height'])) * scale_y
|
|
1015 |
_height = round(float(text_node.attrib['Height']) * scale_y)
|
|
1016 | 1016 |
loc[1] -= _height |
1017 | 1017 |
_width = round(_height * len(text) * self.text_scale) |
1018 | 1018 |
#_width = round(float(text_node.attrib['Width'])) |
DTI_PID/DTI_PID/Shapes/QEngineeringSizeTextItem.py | ||
---|---|---|
106 | 106 |
|
107 | 107 |
except Exception as ex: |
108 | 108 |
from App import App |
109 |
from AppDocData import MessageType |
|
109 | 110 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
110 | 111 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
내보내기 Unified diff