edeforas / Astree

Astree is a free open source optical ray tracing and design software
GNU Lesser General Public License v3.0
76 stars 9 forks source link

Two same "image" items in "Type" list #34

Closed ghost closed 4 years ago

ghost commented 4 years ago

Just found that there are two same qcbType->addItem("image"); items in ./src/gui/DockSurfacesData.cpp file:

...
    for (int i=0;i<_pOD->nb_surface();i++)
    {
        int iRefClone;
        double dCloneGain;
        int iIndexCol=0;
        QComboBox*  qcbType=new QComboBox;
        qcbType->addItem("stop");
        qcbType->addItem("reflect");
        qcbType->addItem("void");
        qcbType->addItem("image");
        qcbType->addItem("image_infinite");
        qcbType->addItem("perfect_lens");
        qcbType->addItem("perfect_mirror");
        qcbType->addItem("image");
        qcbType->addItem("glass...");
        for(unsigned int iM=0;iM<vsMaterial.size();iM++) //TODO optimize
            qcbType->addItem(vsMaterial[iM].c_str());
...
edeforas commented 4 years ago

thanks, fixed.