Don't apply scale twice for text if both height and stroke are in mm.

pull/144/head
EvilSpirit 2016-12-19 22:39:58 +07:00 committed by whitequark
parent 626ffeab1f
commit 5763972ed8
1 changed files with 4 additions and 3 deletions

View File

@ -1169,9 +1169,10 @@ s:
} }
if(disp.style.v != 0) { if(disp.style.v != 0) {
stroke.width = Style::Width(disp.style); RgbaColor color = stroke.color;
if(how == DrawAs::DEFAULT) { stroke = Style::Stroke(disp.style);
stroke.color = Style::Color(disp.style); if(how != DrawAs::DEFAULT) {
stroke.color = color;
} }
hcs = canvas->GetStroke(stroke); hcs = canvas->GetStroke(stroke);
} }