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) {
stroke.width = Style::Width(disp.style);
if(how == DrawAs::DEFAULT) {
stroke.color = Style::Color(disp.style);
RgbaColor color = stroke.color;
stroke = Style::Stroke(disp.style);
if(how != DrawAs::DEFAULT) {
stroke.color = color;
}
hcs = canvas->GetStroke(stroke);
}