summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-09-02 08:53:01 +0000
committerRobert Pösel <robyer@seznam.cz>2014-09-02 08:53:01 +0000
commit25f61751aafa9f30a26cdf10a212d14103ebb810 (patch)
tree011103243a3b22e389dcec217b3ec262c16b0924 /plugins/Clist_modern
parent78f9d3691155dba72fc0e297296cb72290d2bcce (diff)
Clist_modern: Naive workaround for drawing group counts with ellipsis when there is still space
git-svn-id: http://svn.miranda-ng.org/main/trunk@10356 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_clcpaint.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Clist_modern/src/modern_clcpaint.cpp b/plugins/Clist_modern/src/modern_clcpaint.cpp
index 168ef2b9fa..689dcca7bc 100644
--- a/plugins/Clist_modern/src/modern_clcpaint.cpp
+++ b/plugins/Clist_modern/src/modern_clcpaint.cpp
@@ -2533,6 +2533,8 @@ void CLCPaint::_CalcItemsPos( HWND hwnd, HDC hdcMem, ClcData *dat, ClcContact *D
counts_size.cx = counts_rc.right - counts_rc.left;
counts_size.cy = min( counts_rc.bottom - counts_rc.top, free_height );
+ counts_size.cx += 1; // FIXME: This is workaround for sometimes stripped user counts by one pixel, it somehow wrongly counts width of space or counts text (used wrong font?)
+
text_width = free_row_rc.right - free_row_rc.left - space_size.cx - counts_size.cx;
if ( text_width > 4 )