changeset 264:bfafc891369e

Fix: compile error
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 15:34:08 +0200
parents b6e695a17969
children 07d9ed8927b6
files dwt/widgets/Label.d
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/widgets/Label.d	Sun Jul 06 15:33:42 2008 +0200
+++ b/dwt/widgets/Label.d	Sun Jul 06 15:34:08 2008 +0200
@@ -405,8 +405,8 @@
 
 void setAlignment () {
     bool isRTL = (style & DWT.RIGHT_TO_LEFT) !is 0;
-    if (text !is null && text.length () !is 0) {
-        if (OS.GTK_VERSION >= OS.VERSION(2, 4, 0)) {
+    if (text !is null && text.length !is 0) {
+        if (OS.GTK_VERSION >= OS.buildVERSION(2, 4, 0)) {
             auto layout = OS.gtk_label_get_layout (labelHandle);
             auto linePtr = OS.pango_layout_get_line (layout, 0);
             int resolved_dir = OS.pango_layout_line_get_resolved_dir (linePtr);