* src/docgen/PSDrawDoc.py (rgb_color): Remove function, import it
from ReportUtils instead. * src/ReportUtils.py (rgb_color): Add function. * src/docgen/PdfDoc.py: Use rgb_color from ReportUtils. * src/docgen/LPRDoc.py: Use rgb_color from ReportUtils. svn: r4070
This commit is contained in:
@@ -20,6 +20,13 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# Python modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
# gramps modules
|
||||
@@ -30,7 +37,7 @@ import PluginMgr
|
||||
import Errors
|
||||
import ImgManip
|
||||
import GrampsMime
|
||||
from gettext import gettext as _
|
||||
from ReportUtils import rgb_color
|
||||
|
||||
_H = 'Helvetica'
|
||||
_HB = 'Helvetica-Bold'
|
||||
@@ -611,7 +618,7 @@ class PdfDoc(BaseDoc.BaseDoc):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
def make_color(c):
|
||||
return Color(float(c[0])/255.0, float(c[1])/255.0, float(c[2])/255.0)
|
||||
return Color(rgb_color(c))
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user