]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextstyles.cpp
Clear styles popup if there is no style sheet
[wxWidgets.git] / src / richtext / richtextstyles.cpp
index cac6a8b1d62c9ae2b57580656ca8bc6745611375..77e1d2abacacd4854b09b539bcdf1b96d094173f 100644 (file)
@@ -666,6 +666,13 @@ void wxRichTextStyleListBox::UpdateStyles()
             SendSelectedEvent();
         }
     }
             SendSelectedEvent();
         }
     }
+    else
+    {
+        m_styleNames.Clear();
+        SetSelection(wxNOT_FOUND);
+        SetItemCount(0);
+        Refresh();
+    }
 }
 
 // Get index for style name
 }
 
 // Get index for style name