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

This commit is contained in:
EvilSpirit 2016-12-19 22:39:58 +07:00 committed by whitequark
parent 626ffeab1f
commit 5763972ed8

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);
}