[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

RE: [XaraXtreme-dev] Open file, get standard colours



Hi Guys,

I did do some (though not all) of the code in this area and I think you
are right that at the time it was done there weren't any template
documents to load...

I think the code concerned is in CCamDoc::DefaultDocumentRequired
(wxOil\camdoc.cpp).  It appears that this function simply determines if
the template is required but I believe it should also be loading the
template if it is.

Gerry

-----Original Message-----
From: owner-dev@xxxxxxxxxxxxxxxx [mailto:owner-dev@xxxxxxxxxxxxxxxx] On
Behalf Of Alex Bligh
Sent: 24 June 2007 11:14
To: dev@xxxxxxxxxxxxxx
Cc: Alex Bligh
Subject: Re: [XaraXtreme-dev] Open file, get standard colours

JLM,

--On 23 June 2007 18:26 -0400 JLM <jsado_sc5@xxxxxxxxxxxxx> wrote:

> When you open an image or SVG file, a new document is created
(complete
> with new tab) but it does not appear that a default template is loaded
> prior to reading in the file.
>
> So if I understand correctly, you believe that opening a file should
do
> the same thing as creating a new document and then importing that
file?
> I can change the program to work that way.

Yes I believe so. I am more interested though in /why/ (given we're
using a codebase similar to the Windows version) it doesn't "just work".
Gerry converted this stuff (hi Gerry!) and I'm hoping he's going to
chime
in and say something like "oh yes just uncomment the following line from
this file which was commented out as we didn't have default document
loading
working then". I suspect what is happening is that it is using the wrong
document template (I think there's a very basic internal code generated
one) which is potentially dangerous for lots of reasons.

Alex