fix compilation error (#1697)

This commit is contained in:
Le Tan 2021-02-23 21:19:33 +08:00 committed by GitHub
parent 41bb9c0676
commit d8371a9b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,11 +137,11 @@ QGroupBox *ExportDialog::setupTargetGroup(QWidget *p_parent)
AdvancedSettings settings = AdvancedSettings::Max;
int format = m_targetFormatComboBox->currentData().toInt();
switch (format) {
case ExportFormat::HTML:
case static_cast<int>(ExportFormat::HTML):
settings = AdvancedSettings::HTML;
break;
case ExportFormat::PDF:
case static_cast<int>(ExportFormat::PDF):
settings = AdvancedSettings::PDF;
break;