Update FFmpeg handling and focus management
Refactor FFmpeg frame processing and improve focus management in panels. Add memory sanitization for debug builds and update KDDockWidgets integration.
This commit is contained in:
@@ -1203,8 +1203,11 @@ void ViewerWidget::UpdateMinimumScale()
|
||||
// Avoids divide by zero
|
||||
SetMinimumScale(0);
|
||||
} else {
|
||||
SetMinimumScale(static_cast<double>(ruler()->width()) /
|
||||
GetConnectedNode()->GetLength().toDouble());
|
||||
double min_scale = static_cast<double>(ruler()->width()) /
|
||||
GetConnectedNode()->GetLength().toDouble();
|
||||
// Ensure min_scale doesn't exceed max_scale to prevent crash
|
||||
min_scale = qMin(min_scale, GetMaximumScale());
|
||||
SetMinimumScale(min_scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user