- if ((params_.spacing().getSpace() != Spacing::Single
- && !params_.spacing().isDefault())
- || isRequired("setspace")) {
- packages << "\\usepackage{setspace}\n";
+ if ((isRequired("setspace")
+ || ((params_.spacing().getSpace() != Spacing::Single
+ && !params_.spacing().isDefault())))
+ && !tclass.provides("SetSpace")) {
+ packages << "\\usepackage{setspace}\n";