Revision: 18239
          http://sourceforge.net/p/jmol/code/18239
Author:   hansonr
Date:     2013-05-21 14:02:18 +0000 (Tue, 21 May 2013)
Log Message:
-----------
viewer haveDisplay not set properly for test suite.

Modified Paths:
--------------
    trunk/Jmol/src/org/jmol/viewer/Viewer.java

Modified: trunk/Jmol/src/org/jmol/viewer/Viewer.java
===================================================================
--- trunk/Jmol/src/org/jmol/viewer/Viewer.java  2013-05-21 13:39:33 UTC (rev 
18238)
+++ trunk/Jmol/src/org/jmol/viewer/Viewer.java  2013-05-21 14:02:18 UTC (rev 
18239)
@@ -471,9 +471,10 @@
     apiPlatform = (ApiPlatform) o;
     display = info.get("display");
     isSingleThreaded = apiPlatform.isSingleThreaded();
-    noGraphicsAllowed = (display == null && checkOption2("noGraphics", "-n"));
+    noGraphicsAllowed = checkOption2("noGraphics", "-n");
     haveDisplay = (display != null && !noGraphicsAllowed && !isHeadless() && 
!checkOption2(
         "isDataOnly", "\0"));
+    noGraphicsAllowed &= (display == null);
     if (haveDisplay) {
       mustRender = true;
       multiTouch = checkOption2("multiTouch", "-multitouch");

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to