프로젝트

일반

사용자정보

개정판 c3f48268

IDc3f482681c409f32e4f4e94bf48e77dbcbe44866
상위 a99adf81
하위 ede8fac4, b302d1a0

백흠경이(가) 약 4년 전에 추가함

issue #1493: text height에 scale 적용 오류 수정

Change-Id: Ifb921e002e0eb7e12192a3df116dfdb0c6536a59

차이점 보기:

DTI_PID/DTI_PID/ImportTextFromCADDialog.py
717 717
    def on_import_autocad(self):
718 718
        """
719 719
        import line, text and symbol from autocad
720
        :return: None
720
        @return: None
721 721
        """
722 722

  
723 723
        from AppDocData import Config
......
991 991
    def text_to_xml(self, text_node, id2_bbox, autocad_bbox):
992 992
        """
993 993
        try to convert text element to id2 xml
994
        :param text_node:
995
        :param id2_bbox:
996
        :param autocad_bbox:
997
        :return:
994
        @param text_node:
995
        @param id2_bbox:
996
        @param autocad_bbox:
997
        @return:
998 998
        """
999 999
        import uuid
1000 1000
        from EngineeringTextItem import QEngineeringTextItem
......
1011 1011
            text = text_node.text
1012 1012
            angle = round(float(text_node.attrib['Angle']), 2)
1013 1013

  
1014
            _height = round(float(text_node.attrib['Height'])) * scale_y
1014
            _height = round(float(text_node.attrib['Height']) * scale_y)
1015 1015
            loc[1] -= _height
1016 1016
            _width = round(_height * len(text) * self.text_scale)
1017 1017
            #_width = round(float(text_node.attrib['Width']))

내보내기 Unified diff

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