don't type out a (possible) warning message if the option is not on

This commit is contained in:
Paul Franklin 2017-02-24 11:10:03 -08:00
parent fc4b9fe695
commit 1ce98afc86

View File

@ -59,7 +59,6 @@ from gramps.gen.plug.report import stdoptions
from gramps.gen.utils.file import media_path_full
from gramps.gen.utils.lds import TEMPLES
from gramps.gen.proxy import CacheProxyDb
from gramps.gen.relationship import get_relationship_calculator
from gramps.gen.errors import ReportError
#------------------------------------------------------------------------
@ -160,6 +159,7 @@ class IndivCompleteReport(Report):
self.home_person = self._db.get_default_person() # might be None
self.increlname = menu.get_option_by_name('incl_relname').get_value()
if self.increlname and self.home_person:
from gramps.gen.relationship import get_relationship_calculator
self.rel_calc = get_relationship_calculator(reinit=True,
clocale=self._locale)