addpatternpanel layout fix
Merge branch 'master' of https://github.com/Neverfor/PaF-Reppo
fixed nullpointers and endless loop