[librsvg/rustification] Remove superfluous term
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] Remove superfluous term
- Date: Sat, 12 Nov 2016 00:09:39 +0000 (UTC)
commit 69789ced424d2a7c25b10ca11be2722c70e33987
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Nov 11 18:09:01 2016 -0600
Remove superfluous term
Here, bbox.x = bbox.y = 0, so we don't need to add them.
rsvg-base.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index a91b12a..04b1df1 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -1466,10 +1466,9 @@ rsvg_handle_get_dimensions_sub (RsvgHandle * handle, RsvgDimensionData * dimensi
bbox.rect.height = root->vbox.rect.height;
dimension_data->width = (int) (_rsvg_css_hand_normalize_length (&root->w, handle->priv->dpi_x,
- bbox.rect.width + bbox.rect.x * 2, 12) + 0.5);
+ bbox.rect.width, 12) + 0.5);
dimension_data->height = (int) (_rsvg_css_hand_normalize_length (&root->h, handle->priv->dpi_y,
- bbox.rect.height + bbox.rect.y * 2,
- 12) + 0.5);
+ bbox.rect.height, 12) + 0.5);
}
dimension_data->em = dimension_data->width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]