change placement of ruler divider so that the lower line is at the specified height...
[ardour.git] / gtk2_ardour / quantize_dialog.cc
index 98514326d5e9b6ef7c7a7ea081ef4a8a930876ac..82e3a1abd57fedd8500a485d79a0b6f0a50652a1 100644 (file)
@@ -131,11 +131,11 @@ QuantizeDialog::grid_size_to_musical_time (const string& txt) const
        if (txt == "main grid") {
                bool success;
 
-               Evoral::MusicalTime b = editor.get_grid_type_as_beats (success, 0);
+               Evoral::Beats b = editor.get_grid_type_as_beats (success, 0);
                if (!success) {
                        return 1.0;
                }
-               return (double) b;
+               return b.to_double();
        }
 
        if (txt == _("Beats/128")) {