Skip to content

Commit 1234a86

Browse files
mgilfillanchearon
authored andcommitted
Render at natural dimensions to fix scaling issues
Fixes #2498
1 parent c936361 commit 1234a86

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1414
* Fix a crash when SVGs without width or height are loaded (#2486)
1515
* Fix fetching prebuilds during installation on certain newer versions of Node (#2497)
1616
* Fixed issue with fillText that was breaking subsequent fillText calls (#2171)
17+
* Fix svg rendering when the image is resized (#2498)
1718

1819
3.1.0
1920
==================

src/Image.cc

-3
Original file line numberDiff line numberDiff line change
@@ -1506,9 +1506,6 @@ Image::renderSVGToSurface() {
15061506
}
15071507

15081508
cairo_t *cr = cairo_create(_surface);
1509-
cairo_scale(cr,
1510-
(double)width / (double)naturalWidth,
1511-
(double)height / (double)naturalHeight);
15121509
status = cairo_status(cr);
15131510
if (status != CAIRO_STATUS_SUCCESS) {
15141511
g_object_unref(_rsvg);

0 commit comments

Comments
 (0)