From 8c5b4a83cf8c8d462734acae5fe9cb6aab0ab46b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 20 May 2017 08:49:43 +0200 Subject: [PATCH] Add a const Signed-off-by: Sebastian Ramacher --- zathura/page-widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/page-widget.c b/zathura/page-widget.c index 324f668..58b11e9 100644 --- a/zathura/page-widget.c +++ b/zathura/page-widget.c @@ -421,7 +421,7 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) if (priv->surface != NULL || priv->thumbnail != NULL) { cairo_save(cairo); - unsigned int rotation = zathura_document_get_rotation(document); + const unsigned int rotation = zathura_document_get_rotation(document); switch (rotation) { case 90: cairo_translate(cairo, page_width, 0);