Skip to content

Commit

Permalink
double-valued positions: additional toDouble call
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Schürmann <[email protected]>
  • Loading branch information
ywwg and daschuer committed Nov 8, 2022
1 parent 7337e2d commit 78b3ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/dao/cuedao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CuePointer cueFromRow(const QSqlRecord& row) {
const auto position =
mixxx::audio::FramePos::fromEngineSamplePosMaybeInvalid(
row.value(row.indexOf("position")).toDouble());
int lengthFrames = row.value(row.indexOf("length")).toInt() / mixxx::kEngineChannelCount;
FrameDiff_t lengthFrames = row.value(row.indexOf("length")).toDouble() / mixxx::kEngineChannelCount;
int hotcue = row.value(row.indexOf("hotcue")).toInt();
QString label = labelFromQVariant(row.value(row.indexOf("label")));
mixxx::RgbColor::optional_t color = mixxx::RgbColor::fromQVariant(row.value(row.indexOf("color")));
Expand Down

0 comments on commit 78b3ba8

Please sign in to comment.