On Sat, Dec 20, 2008 at 3:41 AM, Hans Breuer <[email protected]> wrote:

> lib/sheet.c(load_all_sheets) has
>
>  sheet_path = getenv("DIA_SHEET_PATH");

OK. So the location of sheets is taken from one of two places:
1) If the environment variable is set, then it is used
2) else a path relative to the compile-time variable DATADIR is used.

In that case, some code in object/SISSI is broken. For example,
sissi_object_create() in SISSI/sissi_object.c ... it directly calls
dia_get_data_directory() when loading a sheet, without checking the
environment variable. The correct fix is to extract the code in
lib/sheet.c into a new function called dia_get_sheets_directory(),
which can be used wherever the name of the sheets directory is
required.

Sameer.
-- 
http://www.it.iitb.ac.in/~sameerds/
_______________________________________________
dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia

Reply via email to