Changeset 3453


Ignore:
Timestamp:
Jun 27, 2018 4:15:09 PM (3 years ago)
Author:
toby
Message:

avoid bug on missing linescan var

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3438 r3453  
    414414            attribs = (wx.glcanvas.WX_GL_DOUBLEBUFFER,wx.glcanvas.WX_GL_DEPTH_SIZE,24)
    415415            self.canvas = wx.glcanvas.GLCanvas(self,-1,attribList=attribs,**kwargs)
     416            GL.glEnable(GL.GL_NORMALIZE)
     417        #GSASIIpath.IPyBreak()
    416418        # create GL context
    417419        i,j= wx.__version__.split('.')[0:2]
     
    65656567            Plot.set_xlim(xylim[0])
    65666568            Plot.set_ylim(xylim[1])
    6567             if Data['linescan']:
     6569            if Data.get('linescan',[False,0.])[0]:
    65686570                try:
    65696571                    Plot1.set_xlim(Page.xlim1)
Note: See TracChangeset for help on using the changeset viewer.