opnsense-ports/multimedia/subtitleeditor/files/patch-src_subtitleview.cc
Franco Fichtner 9a2c491264 */*: sync with upstream
Taken from: FreeBSD
2017-04-24 06:54:48 +02:00

11 lines
382 B
C++

--- src/subtitleview.cc.orig 2014-02-12 22:02:59 UTC
+++ src/subtitleview.cc
@@ -1370,7 +1370,7 @@ bool SubtitleView::on_key_press_event(Gd
{
int num;
std::istringstream ss(event->string);
- bool is_num = ss >> num != 0;
+ bool is_num = static_cast<bool>(ss >> num);
// Update only if it's different
if(is_num != get_enable_search())
set_enable_search(is_num);