Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1234a86

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

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

‎CHANGELOG.md

Lines changed: 1 addition & 0 deletions
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

Lines changed: 0 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /