From 5a701624dae54b64008a126de7ecec7f66bce675 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Tue, 1 Jan 2019 19:09:46 +0100 Subject: Minor style fixes --- src/ui/widget/font-variants.cpp | 4 ++-- src/ui/widget/ink-color-wheel.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp index 8f99bd74c..a8ff3893f 100644 --- a/src/ui/widget/font-variants.cpp +++ b/src/ui/widget/font-variants.cpp @@ -1046,7 +1046,7 @@ namespace Widget { for (auto table: res->openTypeTables) { if (table.first == "case" || table.first == "hist" || - table.first[0] == 's' && table.first[1] == 's' && !(table.first[2] == 't')) { + (table.first[0] == 's' && table.first[1] == 's' && !(table.first[2] == 't'))) { if( (it = table_copy.find(table.first)) != table_copy.end() ) table_copy.erase( it ); @@ -1063,7 +1063,7 @@ namespace Widget { table.first == "cwsh" || table.first == "ornm" || table.first == "nalt" || - table.first[0] == 'c' && table.first[1] == 'v') { + (table.first[0] == 'c' && table.first[1] == 'v')) { if (table.second.input.length() == 0) { // This can happen if a table is not in the 'DFLT' script and 'dflt' language. diff --git a/src/ui/widget/ink-color-wheel.cpp b/src/ui/widget/ink-color-wheel.cpp index db3890548..cc2c8f688 100644 --- a/src/ui/widget/ink-color-wheel.cpp +++ b/src/ui/widget/ink-color-wheel.cpp @@ -528,7 +528,7 @@ ColorWheel::on_button_press_event(GdkEventButton* event) bool ColorWheel::on_button_release_event(GdkEventButton* event) { - _mode == DRAG_NONE; + _mode = DRAG_NONE; return true; } -- cgit v1.2.3