[Xfce4-commits] <xfce4-settings:master> Fix missing modes in the UI
Nick Schermer
noreply at xfce.org
Sat Aug 28 23:05:13 CEST 2010
Updating branch refs/heads/master
to 5db8106dcc5c59dd9fd42f0cb852c2f02104a6d9 (commit)
from bb1816dbb2fa44b17d2449c28b1c3ef28c3aece1 (commit)
commit 5db8106dcc5c59dd9fd42f0cb852c2f02104a6d9
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date: Tue Aug 24 19:39:12 2010 +0200
Fix missing modes in the UI
Inverted logic in the test lead to this issue.
dialogs/display-settings/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index ee64e67..22e9333 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -595,8 +595,8 @@ display_setting_resolutions_populate (GtkBuilder *builder)
for (n = 0; n < XFCE_RANDR_OUTPUT_INFO (xfce_randr)->nmode; ++n)
{
/* Try to avoid duplicates */
- if (n == 0 || (n > 0 && modes[n].width != modes[n - 1].width
- && modes[n].height != modes[n - 1].height))
+ if (n == 0 || (n > 0 && (modes[n].width != modes[n - 1].width
+ || modes[n].height != modes[n - 1].height)))
{
/* Insert the mode */
More information about the Xfce4-commits
mailing list