- if(img != NULL && mwxwidget != NULL){
- if(!compareVectors(type, currenttype)){
- mwxwidget->SetType(&type);
- mwxwidget->UpdateLayout(img);
- }else if (img != currentimg){
- mwxwidget->SetImage(img);
- //mwxwidget->UpdateLayout(img);
+ if(img != NULL && _mwxwidget != NULL){
+ if(!compareVectors(type, _currenttype)){
+ _mwxwidget->SetType(&type);
+ _mwxwidget->UpdateLayout(img);
+ }else if (img != _currentimg){
+ _mwxwidget->SetImage(img);