summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/sdpopup.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/app/sdpopup.cxx')
-rw-r--r--sd/source/ui/app/sdpopup.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx
index ebccfe8cb4c9..52a0435351de 100644
--- a/sd/source/ui/app/sdpopup.cxx
+++ b/sd/source/ui/app/sdpopup.cxx
@@ -152,19 +152,19 @@ void SdFieldPopup::Fill( LanguageType eLanguage )
void SdFieldPopup::Execute(weld::Window* pParent, const tools::Rectangle& rRect)
{
OString sIdent = m_xPopup->popup_at_rect(pParent, rRect);
- if (!sIdent.isEmpty())
+ if (sIdent.isEmpty())
+ return;
+
+ if (sIdent == "1" || sIdent == "2")
{
- if (sIdent == "1" || sIdent == "2")
- {
- m_xPopup->set_active("1", sIdent == "1");
- m_xPopup->set_active("2", sIdent == "2");
- }
- else
- {
- int nCount = m_xPopup->n_children();
- for (int i = 3; i < nCount; i++)
- m_xPopup->set_active(OString::number(i), sIdent == OString::number(i));
- }
+ m_xPopup->set_active("1", sIdent == "1");
+ m_xPopup->set_active("2", sIdent == "2");
+ }
+ else
+ {
+ int nCount = m_xPopup->n_children();
+ for (int i = 3; i < nCount; i++)
+ m_xPopup->set_active(OString::number(i), sIdent == OString::number(i));
}
}