Commit 50a60f1
committed
Fix: Measurement text invisible in SVG export due to white color
Measurements in OpenWebCAD use a default line color of white. When exporting to SVG, the SvgDrawController correctly changes white lines and fills to black for visibility against the SVG's white background.
However, the text color for measurements was passed directly to the SVG text element. If the measurement color was white (default), the text would be white on a white background, rendering it invisible.
This commit modifies the `SvgDrawController.drawText` method to check if the incoming text color is white. If it is, the color is changed to black ('#000') before rendering the SVG text element. Other colors are unaffected, ensuring they appear as intended in the SVG output.1 parent 9bd1f8b commit 50a60f1
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
214 | 222 | | |
215 | | - | |
| 223 | + | |
| 224 | + | |
216 | 225 | | |
217 | 226 | | |
218 | 227 | | |
| |||
0 commit comments