]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dlist.h
make sure group boxes don't get the big font
[wxWidgets.git] / include / wx / dlist.h
index 3e43cb83076c545c0d35390c639fe41bca7401db..0389d830d412696b16150a8423956acf2f779129 100644 (file)
@@ -789,13 +789,16 @@ public:
         for(size_type i = 0; i < n; ++i)
             Append(v);
     }
-    iterator insert(const iterator& it, const_reference v = value_type())
+    iterator insert(const iterator& it, const_reference v)
     {
-        Insert(it.m_node,v);
+        if (it == end())
+            Append( v );
+        else
+            Insert(it.m_node,v);
         iterator itprev(it);
         return itprev--;
     }
-    void insert(const iterator& it, size_type n, const_reference v = value_type())
+    void insert(const iterator& it, size_type n, const_reference v)
     {
         for(size_type i = 0; i < n; ++i)
             Insert(it.m_node, v);