[sr-dev] git:3.2: dialog: fix bug when detect_spirals enabled