* (bug 3127) Render large SVGs at image page size correctly
* Fix regressions in ChangesList traditional layout
* Fix edit on double-click for move-protected pages in Classic skin
+* Fix scaling of non-integer SVG unit sizes
=== Caveats ===
'' => 1.0, // "User units" pixels by default
'%' => 2.0, // Fake it!
);
- if( preg_match( '/^(\d+)(em|ex|px|pt|pc|cm|mm|in|%|)$/', $length, $matches ) ) {
+ if( preg_match( '/^(\d+(?:\.\d+)?)(em|ex|px|pt|pc|cm|mm|in|%|)$/', $length, $matches ) ) {
$length = floatval( $matches[1] );
$unit = $matches[2];
return round( $length * $unitLength[$unit] );