Fix sample handling in toolbar in tb_format FS#2691

The previous fix in e38f3066cedb80722b3488e7ab3b2809b6db5363 fixed this
bug only in tb_formatln.