From c5e1e8506ca471deaa6fde1800b3ed852482dc73 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Fri, 30 Sep 2011 08:05:29 +0000 Subject: [PATCH] bad condition --- .../google/gwt/query/client/impl/SelectorEngineCssToXPath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java index 85c85d0f..9f385dfb 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java @@ -225,7 +225,7 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl { SelectorEngine.xpathEvaluate(xsel, ctx, elm); return JsUtils.unique(elm.> cast()).cast(); } catch (Exception e) { - if (GWT.isScript()) { + if (!GWT.isScript()) { if (!SelectorEngine.hasXpathEvaluate()) { throw new RuntimeException("This Browser does not support Xpath selectors.", e); } -- 2.39.5