]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
Implemented window coord mirroring for RTL. This
[wxWidgets.git] / src / generic / treectlg.cpp
index 66822423d0625e95dd1e237cb6a223b7fffed72f..b0de2f9f2b1b28b3d0c98cd6459b1f64e862c0d3 100644 (file)
@@ -1021,6 +1021,12 @@ void wxGenericTreeCtrl::SetItemBold(const wxTreeItemId& item, bool bold)
     if ( pItem->IsBold() != bold )
     {
         pItem->SetBold(bold);
+
+        // recalculate the item size as bold and non bold fonts have different
+        // widths
+        wxClientDC dc(this);
+        CalculateSize(pItem, dc);
+
         RefreshLine(pItem);
     }
 }