On the diameter of dot-critical graphs