guint time,
TboWindow *tbo)
{
+ float zoom = tbo_drawing_get_zoom ();
glong *_idata;
gchar *_sdata;
_sdata = (gchar*)selection_data->data;
Frame *frame = get_frame_view ();
- int rx = tbo_frame_get_base_x (x);
- int ry = tbo_frame_get_base_y (y);
+ int rx = tbo_frame_get_base_x (x / zoom);
+ int ry = tbo_frame_get_base_y (y / zoom);
SVGImage *svgimage = tbo_svgimage_new_width_params (rx, ry, 0, 0, _sdata);
update_drawing (tbo);
tbo_frame_add_obj (frame, svgimage);
void tbo_drawing_draw_page (cairo_t *cr, Page *page, int w, int h);
void tbo_drawing_zoom_in (TboWindow *tbo);
void tbo_drawing_zoom_out (TboWindow *tbo);
+float tbo_drawing_get_zoom ();
#endif