Bug fix: Marks checkboxes in iconview
authorTomasz Golinski <tomaszg@math.uwb.edu.pl>
Sat, 16 Sep 2017 19:12:22 +0000 (20:12 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sat, 16 Sep 2017 19:12:22 +0000 (20:12 +0100)
The width of the marks checkboxes was not taken into account in icon view mode

src/view_file/view_file_icon.c

index b60074c..b612e7d 100644 (file)
@@ -191,7 +191,7 @@ static gint vficon_get_icon_width(ViewFile *vf)
 {
        gint width;
 
-       if (!VFICON(vf)->show_text) return options->thumbnails.max_width;
+       if (!VFICON(vf)->show_text && !vf->marks_enabled ) return options->thumbnails.max_width;
 
        width = options->thumbnails.max_width + options->thumbnails.max_width / 2;
        if (width < THUMB_MIN_ICON_WIDTH) width = THUMB_MIN_ICON_WIDTH;