Spreadsheet: Use freecad_cast whenever possible

This commit is contained in:
Kacper Donat
2025-04-25 00:05:47 +02:00
committed by Benjamin Nauck
parent c5a137df89
commit a5071587de

View File

@@ -251,7 +251,7 @@ void CmdSpreadsheetExport::activated(int iMsg)
if (sheetView) {
Sheet* sheet = sheetView->getSheet();
Gui::ViewProvider* vp = Gui::Application::Instance->getViewProvider(sheet);
auto* vps = dynamic_cast<ViewProviderSheet*>(vp);
auto* vps = freecad_cast<ViewProviderSheet*>(vp);
if (vps) {
vps->exportAsFile();
}