From 71327bb975b95510a6c5b8f09de2a0209dfdfb08 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Mon, 10 Jul 2017 17:43:04 -0400 Subject: [PATCH] removed unnecessary variable --- src/graph.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graph.cpp b/src/graph.cpp index ce47a41..7ac5239 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -33,8 +33,7 @@ bool Graph::on_draw(const Cairo::RefPtr &cr) { graph_height = height - graph_y_start - scale_offset; // Grab text color from theme - auto sc = this->get_style_context(); - text_color = sc->get_color(); + text_color = this->get_style_context()->get_color(); // Draw it draw_title(cr);