fixed srcwin error bug if only margin exceeds VRT border