Mercurial > vim
changeset 3624:3ae387af405f v7.3.572
updated for version 7.3.572
Problem: Duplicate statement in if and else. (Dominique Pelle)
Solution: Remove the condition and add a TODO.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 29 Jun 2012 13:19:27 +0200 |
parents | a4ced2c38743 |
children | 5f703b8e1d4e |
files | src/gui_xmebw.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_xmebw.c +++ b/src/gui_xmebw.c @@ -375,11 +375,8 @@ set_pixmap(XmEnhancedButtonWidget eb) XGetGeometry(dpy, pix, &root, &x, &y, &width, &height, &border, &depth); - if (eb->enhancedbutton.label_location == (int)XmTOP - || eb->enhancedbutton.label_location == (int)XmBOTTOM) - shift = eb->primitive.shadow_thickness / 2; - else - shift = eb->primitive.shadow_thickness / 2; + /* TODO: does the shift depend on label_location somehow? */ + shift = eb->primitive.shadow_thickness / 2; if (shift < 1) shift = 1;