프로젝트

일반

사용자정보

개정판 c1d03a50

IDc1d03a5005be43ce4f832fa633b6fb135e49e803
상위 2104f867
하위 7b3a2d7c, af3f3166

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

cad text

Change-Id: I770bb70576bfa06573289cd3932e62c02a87d4ba

차이점 보기:

DTI_PID/DTI_PID/ImportTextFromCADDialog.py
1496 1496
            if abs(angle - 1.57) < allowed_error:
1497 1497
            #    height, _width = _width, _height
1498 1498
            #    loc[0], loc[1] = loc[0] - _width, loc[1] - _height + _width
1499
                loc[0] -= _width
1499
                loc[0] -= _width - 4
1500
                loc[1] -= 4
1500 1501
            elif abs(angle - 4.71) < allowed_error:
1501 1502
            #    _height, _width = _width, _height
1502 1503
            #    loc[0], loc[1] = loc[0] - _width, loc[1] + _height - _width
1503
                loc[0] -= _width
1504
                loc[0] -= _width - 4
1505
                loc[1] -= 4
1504 1506

  
1505 1507
            #_height = round(float(text_node.attrib['Height']) * self.scales[1])
1506
            loc[1] -= _height
1507 1508
            #_width = round(_height * len(text) * self.text_scale)
1508 1509
            ##_width = round(float(text_node.attrib['Width']))
1510
            loc[1] -= _height - 4
1509 1511

  
1510 1512
            item = QEngineeringTextItem()
1511 1513
            item.setPlainText(text)

내보내기 Unified diff

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