Author: kitone
Date: Mon Jan 5 20:17:02 2015
New Revision: 879
URL: http://svn.gna.org/viewcvs/subtitleeditor?rev=879&view=rev
Log:
Fix bug #22493 : Move subtitles disallows moves by not multiplies of 0,100s.
Modified:
trunk/ChangeLog
trunk/src/gui/spinbuttontime.cc
Modified: trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/subtitleeditor/trunk/ChangeLog?rev=879&r1=878&r2=879&view=diff
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Mon Jan 5 20:17:02 2015
@@ -1,3 +1,8 @@
+2015-01-05 kitone <[email protected]>
+
+ * src/gui/spinbuttontime.cc:
+ Fix bug #22493 : Move subtitles disallows moves by not multiplies of
0,100s.
+
2015-01-03 kitone <[email protected]>
* plugins/actions/spellchecking/dialog-spell-checking.ui:
Modified: trunk/src/gui/spinbuttontime.cc
URL:
http://svn.gna.org/viewcvs/subtitleeditor/trunk/src/gui/spinbuttontime.cc?rev=879&r1=878&r2=879&view=diff
==============================================================================
--- trunk/src/gui/spinbuttontime.cc (original)
+++ trunk/src/gui/spinbuttontime.cc Mon Jan 5 20:17:02 2015
@@ -114,11 +114,9 @@
Glib::ustring text = get_text();
if(SubtitleTime::validate(text))
- {
*new_value = (double) SubtitleTime(text).totalmsecs;
- }
else
- g_warning("Invalid value");
+ *new_value = get_value();
return true;
}
@@ -149,9 +147,7 @@
std::string text = build_message("%s%01d:%02d:%02d.%03d", sign.c_str(),
time.hours(), time.minutes(), time.seconds(), time.mseconds());
- set_numeric(false);
set_text(text);
- set_numeric(true);
return true;
}
_______________________________________________
Subtitleeditor-commits mailing list
[email protected]
https://mail.gna.org/listinfo/subtitleeditor-commits