[librsvg] Handle::get_dimensions() - Don't call out to the C code



commit 83fe511d06fa40876a9ba478008a5f736071033d
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Jan 10 08:30:46 2019 -0600

    Handle::get_dimensions() - Don't call out to the C code

 rsvg_internals/src/handle.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index 65206286..42ff9d97 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -329,7 +329,7 @@ impl Handle {
     ) -> Result<RsvgDimensionData, RenderingError> {
         let dimensions = unsafe {
             let mut dimensions = mem::zeroed();
-            rsvg_handle_get_dimensions(handle, &mut dimensions);
+            rsvg_handle_rust_get_dimensions(handle, &mut dimensions);
             dimensions
         };
 
@@ -610,8 +610,6 @@ extern "C" {
     ) -> *mut RsvgHandle;
 
     fn rsvg_handle_get_rust(handle: *const RsvgHandle) -> *mut Handle;
-
-    fn rsvg_handle_get_dimensions(handle: *mut RsvgHandle, dimensions: *mut RsvgDimensionData);
 }
 
 // Looks up a node by its id.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]