개정판 95427e07
issue #481: fix symbol position
Change-Id: I3351e7dc92d2930e924cebbf1db8802c2ded2adf
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
144 | 144 |
errors.append(error) |
145 | 145 |
|
146 | 146 |
# set error position |
147 |
denominator = len(errors) + 1 |
|
148 |
molecule = 1 |
|
147 |
#denominator = len(errors) + 1
|
|
148 |
#molecule = 1
|
|
149 | 149 |
for error in errors: |
150 |
error.setPosition([self.loc[0] + int(molecule * self.size[0] / denominator), self.loc[1] + int(self.size[1]/2)], origin)
|
|
151 |
molecule = molecule + 1 |
|
150 |
error.setPosition([self.sceneBoundingRect().center().x(), self.sceneBoundingRect().center().y()], origin)
|
|
151 |
#molecule = molecule + 1
|
|
152 | 152 |
|
153 | 153 |
return errors |
154 | 154 |
|
내보내기 Unified diff