Remove unnecessary addition

This commit is contained in:
Moritz Lipp 2012-03-24 17:42:31 +01:00
parent 64905f282b
commit fd06599d57

View File

@ -69,8 +69,8 @@ cb_view_vadjustment_value_changed(GtkAdjustment* GIRARA_UNUSED(adjustment), gpoi
girara_setting_get(zathura->ui.session, "page-padding", &page_padding); girara_setting_get(zathura->ui.session, "page-padding", &page_padding);
GdkRectangle center; GdkRectangle center;
center.x = view_rect.x + (view_rect.width + 1) / 2; center.x = (view_rect.width + 1) / 2;
center.y = view_rect.y + (view_rect.height + 1) / 2; center.y = (view_rect.height + 1) / 2;
center.height = center.width = (2 * page_padding) + 1; center.height = center.width = (2 * page_padding) + 1;
bool updated = false; bool updated = false;