1 --- subtitleeditor-0.52.1/plugins/actions/dialoguize/dialoguize.cc.orig 2015-06-21 23:09:31.000000000 +0200
2 +++ subtitleeditor-0.52.1/plugins/actions/dialoguize/dialoguize.cc 2016-02-19 22:27:48.430323938 +0100
4 * along with this program. If not, see <http://www.gnu.org/licenses/>.
9 #include "extension/action.h"
11 --- subtitleeditor-0.52.1/src/utility.h.orig 2015-06-21 23:09:29.000000000 +0200
12 +++ subtitleeditor-0.52.1/src/utility.h 2016-02-20 10:47:25.319878426 +0100
14 std::istringstream s(src);
15 // return s >> dest != 0;
17 - bool state = s >> dest != 0;
18 + bool state = !!(s >> dest);
21 se_debug_message(SE_DEBUG_UTILITY, "string:'%s'failed.", src.c_str());
22 --- subtitleeditor-0.52.1/src/subtitleview.cc.orig 2015-06-21 23:09:29.000000000 +0200
23 +++ subtitleeditor-0.52.1/src/subtitleview.cc 2016-02-20 11:24:45.551626891 +0100
27 std::istringstream ss(event->string);
28 - bool is_num = ss >> num != 0;
29 + bool is_num = !!(ss >> num);
30 // Update only if it's different
31 if(is_num != get_enable_search())
32 set_enable_search(is_num);