From 2c590c8ad38cadfb569cf5720f8065672cc38217 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Fri, 7 Mar 2014 16:52:51 -0600 Subject: [PATCH] Improve typing of PathPainter For reasons I don't really understand, this fixes a collision with Images. But in principle, this is a better way to design types anyway (particularly for an immutable). --- src/paint.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/paint.jl b/src/paint.jl index 55f189d..781a95c 100644 --- a/src/paint.jl +++ b/src/paint.jl @@ -243,9 +243,9 @@ function paint(self::TextPainter, context::PaintContext) angle=self.angle, halign=self.halign, valign=self.valign) end -immutable PathPainter <: AbstractPainter - x::AbstractVector - y::AbstractVector +immutable PathPainter{A<:AbstractVector, B<:AbstractVector} <: AbstractPainter + x::A + y::B end function boundingbox(self::PathPainter, context::PaintContext)