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