update viewer after copy/paste
Roll back to avoid conflict.
Code cleanup.
Clean up code.
Do not override the rnd settings.
Merge pull request #2004 from jburel/paste-rnd-openedviewer-dev5_0

Paste rnd openedviewer dev5 0