* 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:
Alex Roitman
2005-02-22 01:59:28 +00:00
parent 60e01abcdd
commit 8ee891bee7
5 changed files with 30 additions and 14 deletions

@@ -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))
#------------------------------------------------------------------------
#