RichEdit: Fix to compile with x86 MSVC compiler. (#349)

This commit is contained in:
Zbigniew Rębacz 2026-01-18 08:20:56 +01:00 committed by GitHub
parent af8a2952dd
commit 7cd17f4a3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ void DiagramEditor::TheBar(Bar& bar)
}
else {
m.pos = Pointf(Point(isz)) / 2;
m.size = m.pos - 2;
m.size = m.pos - 2.0;
}
m.width = log(m.width + 1);
bar.Add(MakeIcon(m, isz), [=] {

View file

@ -41,7 +41,7 @@ Image DiagramEditor::ShapeIcon(int i)
}
else {
m.pos = Pointf(Point(isz)) / 2;
m.size = m.pos - 2;
m.size = m.pos - 2.0;
}
m.width = DPI(1);
m.paper = Null;