From 6c97967d7d0ec07a2c094add93f169e13e6a23f8 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Mon, 10 Jul 2017 18:12:06 -0400 Subject: [PATCH] Revert "Revert "removed unnecessary variable"" This reverts commit 557cf4b07e68002e0c4463f94302cab941c1db8f. --- 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);