pspp
12 years agoMEANS: plug memory leaks 20120222030502/pspp 20120223030501/pspp 20120224030501/pspp
John Darrington [Mon, 20 Feb 2012 08:14:13 +0000 (09:14 +0100)]
MEANS: plug memory leaks

12 years agoAttempt to cope with endian issues in zip reader. 20120220030501/pspp 20120221030502/pspp
John Darrington [Sun, 19 Feb 2012 18:26:23 +0000 (19:26 +0100)]
Attempt to cope with endian issues in zip reader.

12 years agoODS Reader: fix uninitialised variables 20120219030503/pspp
John Darrington [Sun, 19 Feb 2012 08:48:31 +0000 (09:48 +0100)]
ODS Reader: fix uninitialised variables

12 years agostr: Skip only up to one-past-the-end in ss_tokenize().
Ben Pfaff [Sat, 18 Feb 2012 19:03:01 +0000 (11:03 -0800)]
str: Skip only up to one-past-the-end in ss_tokenize().

If ss_tokenize() was called with '*save_idx' positioned at
one-past-the-end of a string, it would continue to advance it past
that point, which is surprising.  This avoids doing that.

Found by Valgrind.
Reported-by: John Darrington <john@darrington.wattle.id.au>
12 years agosys-file-reader: Avoid read past end of buffer.
Ben Pfaff [Sat, 18 Feb 2012 19:01:11 +0000 (11:01 -0800)]
sys-file-reader: Avoid read past end of buffer.

The "unexpected label source in mrsets" test caused a read past the
end of the input buffer in text_parse_counted_string().  This fixes
the problem.

Found by Valgrind.
Reported-by: John Darrington <john@darrington.wattle.id.au>
12 years agotests: Avoid failure due to race to mkdir tests/valgrind.
Ben Pfaff [Sat, 18 Feb 2012 18:59:08 +0000 (10:59 -0800)]
tests: Avoid failure due to race to mkdir tests/valgrind.

12 years agocategoricals: Mark dump_interaction() and categoricals_dump() UNUSED.
Ben Pfaff [Sat, 18 Feb 2012 17:54:58 +0000 (09:54 -0800)]
categoricals: Mark dump_interaction() and categoricals_dump() UNUSED.

This avoids warnings that they are unused.

It might be better to just remove them, since they would still be
present in the Git history.

12 years agoRevert "Mark separator names for translation"
John Darrington [Sat, 18 Feb 2012 18:05:41 +0000 (19:05 +0100)]
Revert "Mark separator names for translation"

This reverts commit 02c89b93ff0b5942e66fdfbb7562641a0ff29d2c.
Ben pointed out that this change was incorrect.

12 years agoRemove erroneous case_unrefs. Found by valgrind
John Darrington [Sat, 18 Feb 2012 13:36:23 +0000 (14:36 +0100)]
Remove erroneous case_unrefs. Found by valgrind

12 years agoUse if(0) instead of #if 0
John Darrington [Sat, 18 Feb 2012 11:18:23 +0000 (12:18 +0100)]
Use if(0) instead of #if 0

The Gnu Coding Standards recommend run time conditionals instead of preprocessor
conditionals.  I think this makes sense too, since #if 0'd code becomes obsolete
without anyone noticing.

12 years agocategoricals.c: Fix memory access problems on empty interactions.
John Darrington [Sat, 18 Feb 2012 11:12:46 +0000 (12:12 +0100)]
categoricals.c: Fix memory access problems on empty interactions.

Make sure the categoricals behave correctly when passed
an interaction which contains no variables (ie, no catagories).

12 years agofix warnings 20120217030503/pspp 20120218030508/pspp
John Darrington [Thu, 16 Feb 2012 19:00:58 +0000 (20:00 +0100)]
fix warnings

12 years agoMEANS: Correct position of double vertical rule
John Darrington [Thu, 16 Feb 2012 17:18:12 +0000 (18:18 +0100)]
MEANS: Correct position of double vertical rule

12 years agoMeans: Report totals as well as catagories
John Darrington [Thu, 16 Feb 2012 14:05:07 +0000 (15:05 +0100)]
Means: Report totals as well as catagories

12 years agoPsppire: Allow syntax files to be provided as an argument 20120216030502/pspp
John Darrington [Wed, 15 Feb 2012 10:08:58 +0000 (11:08 +0100)]
Psppire: Allow syntax files to be provided as an argument

12 years agoReliability Test: Do not allow splits greater than the number of variables. 20120215030501/pspp
John Darrington [Tue, 14 Feb 2012 10:13:15 +0000 (11:13 +0100)]
Reliability Test: Do not allow splits greater than the number of variables.

It's not meaningful to have a split point which is greater than the number
of variables (and not useful when they are equal).  And the system was
exhaughsting its memory when such a test was run.  This change therefore
disallows such a combination and updates the behaviour of the GUI accordingly.

12 years agoAdd missing translation markup 20120214030503/pspp
John Darrington [Mon, 13 Feb 2012 20:04:11 +0000 (21:04 +0100)]
Add missing translation markup

12 years agoUse ButtonBox Mask nick field for it's correct purpose.
John Darrington [Mon, 13 Feb 2012 18:16:37 +0000 (19:16 +0100)]
Use ButtonBox Mask nick field for it's correct purpose.

It seems that the GFlagsValue nick field was mistakenly being used as if
it was a translatable label.  Not only was this wrong, but it also created
unnecessary work for translators.  This change provides descriptions of the
flags and removes them from the translatable strings.

12 years agoMark separator names for translation
John Darrington [Mon, 13 Feb 2012 17:35:53 +0000 (18:35 +0100)]
Mark separator names for translation

12 years agoAdded a dialog box for the MEANS command 20120213030503/pspp
John Darrington [Sun, 12 Feb 2012 10:25:31 +0000 (11:25 +0100)]
Added a dialog box for the MEANS command

12 years agoexamples: Change extensions from .stat to .sps. 20120212030502/pspp
Ben Pfaff [Sat, 11 Feb 2012 18:22:17 +0000 (10:22 -0800)]
examples: Change extensions from .stat to .sps.

.sps makes a lot more sense.

Reported-by: Harry Thijssen <pspp@sjpaes.nl>
12 years agotests: Improve test for supported encodings.
Ben Pfaff [Sat, 11 Feb 2012 18:16:25 +0000 (10:16 -0800)]
tests: Improve test for supported encodings.

I misunderstood the purpose for the config.charset script.  I had a
notion that it was supposed to print all of the character sets that
are supported by the operating system.  It doesn't (it prints
character set names that need translation for the operating system).

This change switches to using the same code that will be used at
PSPP runtime to determine whether an encoding is supported, for
determining during the tests whether an encoding is supported.

This should cause fewer tests to be skipped on Mac OS.

Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
12 years agoperl-module: use $(MAKE) directly in rules that call make.
Ben Pfaff [Sat, 11 Feb 2012 18:09:28 +0000 (10:09 -0800)]
perl-module: use $(MAKE) directly in rules that call make.

The GNU make manual says that $(MAKE) must appear directly in a rule
rather than through recursive expansion to work properly.  (This
change fixes a GNU make warning about an unavailable jobserver.)

12 years agoFixed bug #35494 - Levene test crash on no valid values. 20120211030508/pspp
John Darrington [Fri, 10 Feb 2012 12:40:06 +0000 (13:40 +0100)]
Fixed bug #35494 - Levene test crash on no valid values.

12 years agoCorrected typo in documentation 20120210030503/pspp
John Darrington [Thu, 9 Feb 2012 20:35:53 +0000 (21:35 +0100)]
Corrected typo in documentation

12 years agopo: Update Slovenian translation from translationproject.org. 20120209030502/pspp
Ben Pfaff [Thu, 9 Feb 2012 06:30:38 +0000 (22:30 -0800)]
po: Update Slovenian translation from translationproject.org.

12 years agoGET: Add an ENCODING subcommand. 20120208030501/pspp
Ben Pfaff [Wed, 8 Feb 2012 06:58:09 +0000 (22:58 -0800)]
GET: Add an ENCODING subcommand.

For example, this allows a Swedish EBCDIC file that doesn't contain
any indication of its codepage to be read with "ENCODING='IBM278'".

12 years agosys-file: Support EBCDIC magic number in system files.
Ben Pfaff [Wed, 8 Feb 2012 06:20:28 +0000 (22:20 -0800)]
sys-file: Support EBCDIC magic number in system files.

This makes PSPP able to read the 1980s EBCDIC-encoded system file
provided by Chris Muller <chris.muller@mullermedia.com>.

12 years agosys-file: Recode string fields in file header also.
Ben Pfaff [Wed, 8 Feb 2012 06:08:41 +0000 (22:08 -0800)]
sys-file: Recode string fields in file header also.

Chris Muller <chris.muller@mullermedia.com> provided an example
EBCDIC-encoded mainframe system file from the 1980s.  This commit
goes one step toward being able to read and write these files in
PSPP, by recoding most of the string fields in the file header.

12 years agodictionary: Truncate file label in dictionary encoding, not UTF-8.
Ben Pfaff [Wed, 8 Feb 2012 05:18:08 +0000 (21:18 -0800)]
dictionary: Truncate file label in dictionary encoding, not UTF-8.

The limiting factor is bytes in the on-disk format and so there's
no point in truncating in terms of the in-memory format.

12 years agopor-file-writer: Avoid infinite loop with value labels. 20120207030502/pspp
Ben Pfaff [Tue, 7 Feb 2012 06:23:44 +0000 (22:23 -0800)]
por-file-writer: Avoid infinite loop with value labels.

Bug report and fix by Kent Nassen <knassen@umich.edu>.

12 years agogui: Fix warnings due to missing GObject type conversions.
Ben Pfaff [Tue, 7 Feb 2012 06:13:01 +0000 (22:13 -0800)]
gui: Fix warnings due to missing GObject type conversions.

12 years agojonckheere-terpstra: Declare variables at beginning of block.
Ben Pfaff [Tue, 7 Feb 2012 06:11:19 +0000 (22:11 -0800)]
jonckheere-terpstra: Declare variables at beginning of block.

12 years agoNPAR /J-T correct significance calculation when test statistic is greater than zero 20120206030503/pspp
John Darrington [Sun, 5 Feb 2012 17:41:53 +0000 (18:41 +0100)]
NPAR /J-T correct significance calculation when test statistic is greater than zero

12 years agogui: Fix grammar in user message in psppire-data-window.c
Ben Pfaff [Sun, 5 Feb 2012 19:20:55 +0000 (11:20 -0800)]
gui: Fix grammar in user message in psppire-data-window.c

Reported-by: Harry Thijssen <pspp@sjpaes.nl>
12 years agonpar.c: Added some missing initialisers.
John Darrington [Sun, 5 Feb 2012 16:32:17 +0000 (17:32 +0100)]
npar.c: Added some missing initialisers.

Also reorder the initialisers to the same order as their declarations

12 years agoAdded an implementation of the Jonckheere-Terpstra test
John Darrington [Sun, 5 Feb 2012 16:15:02 +0000 (17:15 +0100)]
Added an implementation of the Jonckheere-Terpstra test

12 years agoAdd Slovenian translation from translationproject.org. 20120205030502/pspp
Ben Pfaff [Sun, 5 Feb 2012 03:31:25 +0000 (19:31 -0800)]
Add Slovenian translation from translationproject.org.

This translation is by Matej Urbančič <matej.urban@gmail.com> and
the Slovenian translation team.

12 years agopo: Update Dutch translation from translationproject.org.
Ben Pfaff [Sun, 5 Feb 2012 03:26:22 +0000 (19:26 -0800)]
po: Update Dutch translation from translationproject.org.

12 years agopo: Update German translation from translationproject.org.
Ben Pfaff [Sun, 5 Feb 2012 03:26:04 +0000 (19:26 -0800)]
po: Update German translation from translationproject.org.

12 years agoLogo rework.
John Darrington [Sat, 4 Feb 2012 12:46:31 +0000 (13:46 +0100)]
Logo rework.

From work contributed by bojo42: Reworked the transparent part of the logo.
Also "harmonised" the fonts used in the logo and the splash screen.

12 years agoNew abstract base class: PsppireWindowBase 20120204030502/pspp
John Darrington [Sat, 4 Feb 2012 07:44:05 +0000 (08:44 +0100)]
New abstract base class: PsppireWindowBase

Created a new abstract base class for windows/dialogs and moved the
psppire_conf manipulation to there.  Should fix problems reported by bojo42
where the window geometry wasn't always correctly saved.

12 years agoIncrement version to 0.7.9 to send to Translation Project.
Ben Pfaff [Sat, 4 Feb 2012 03:11:32 +0000 (19:11 -0800)]
Increment version to 0.7.9 to send to Translation Project.

12 years agoError with g_critical instead of g_assert on invalid variable types. 20120203030502/pspp
John Darrington [Thu, 2 Feb 2012 20:46:39 +0000 (21:46 +0100)]
Error with g_critical instead of g_assert on invalid variable types.

12 years agoRewrite documentation for the RECODE command. 20120201030502/pspp 20120202030501/pspp
John Darrington [Tue, 31 Jan 2012 21:37:49 +0000 (22:37 +0100)]
Rewrite documentation for the RECODE command.

Reviewed-by: Ben Pfaff
12 years agoConverted Sort dialog to a PsppireDialogAction object
John Darrington [Tue, 31 Jan 2012 20:19:41 +0000 (21:19 +0100)]
Converted Sort dialog to a PsppireDialogAction object

12 years agopo: Update German translation from translation-project.org. 20120131030501/pspp
Ben Pfaff [Tue, 31 Jan 2012 06:01:39 +0000 (22:01 -0800)]
po: Update German translation from translation-project.org.

12 years agoConverted reliability dialog to a PsppireDialogAction object
John Darrington [Mon, 30 Jan 2012 20:40:33 +0000 (21:40 +0100)]
Converted reliability dialog to a PsppireDialogAction object

12 years agoRemoved erroneous duplicated line 20120130030502/pspp
John Darrington [Sun, 29 Jan 2012 13:17:33 +0000 (14:17 +0100)]
Removed erroneous duplicated line

12 years agoConverted roc-dialog to a PsppireDialogAction object
John Darrington [Sun, 29 Jan 2012 13:16:42 +0000 (14:16 +0100)]
Converted roc-dialog to a PsppireDialogAction object

12 years agoConvert kmeans dialog to a PsppireDialogAction
John Darrington [Sun, 29 Jan 2012 10:57:50 +0000 (11:57 +0100)]
Convert kmeans dialog to a PsppireDialogAction

12 years agoConverted the correlations dialog to a PsppireDialogAction object 20120129030507/pspp
John Darrington [Sun, 29 Jan 2012 09:30:44 +0000 (10:30 +0100)]
Converted the correlations dialog to a PsppireDialogAction object

12 years agoMove PSPP shared libraries from $(libdir) to $(libdir)/pspp.
Ben Pfaff [Fri, 27 Jan 2012 06:06:02 +0000 (22:06 -0800)]
Move PSPP shared libraries from $(libdir) to $(libdir)/pspp.

The PSPP shared libraries do not have a stable ABI and so they
should not go in a public system library directory.  This moves
them to a private library subdirectory.

12 years agoName the src/libpspp convenience library consistently.
Ben Pfaff [Fri, 27 Jan 2012 05:27:36 +0000 (21:27 -0800)]
Name the src/libpspp convenience library consistently.

src/libpspp.la and src/libpspp/libpspp.la have the same name,
although they are in different directories.  This seems unduly
confusing.  This commit renames the latter to liblibpspp.la, which
is at least different from libpspp.la and is also consistent with
the naming of the other libtool convenience libraries as
lib<directory>.la.

12 years agoDon't crash on Games-Howell test when there are small numbers of cases per category. 20120127030502/pspp 20120128030503/pspp
John Darrington [Thu, 26 Jan 2012 21:39:33 +0000 (22:39 +0100)]
Don't crash on Games-Howell test when there are small numbers of cases per category.

Fixes bug #34978

12 years agogui: Fix warnings. 20120126030504/pspp
Ben Pfaff [Thu, 26 Jan 2012 05:17:19 +0000 (21:17 -0800)]
gui: Fix warnings.

This fixes warnings introduced in commit 53508ccb5785 (New abstract
class PsppireDialogAction).

12 years agoperl-module: Fix bad arguments in call to settings_init().
Ben Pfaff [Thu, 26 Jan 2012 04:55:02 +0000 (20:55 -0800)]
perl-module: Fix bad arguments in call to settings_init().

Found by clang.
Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
12 years agoperl-module: Add missing "#include"s to PSPP.xs.
Ben Pfaff [Thu, 26 Jan 2012 04:53:48 +0000 (20:53 -0800)]
perl-module: Add missing "#include"s to PSPP.xs.

Found by clang.
Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
12 years agoperl-module: Add "!= NULL" to assignment used as condition.
Ben Pfaff [Thu, 26 Jan 2012 04:52:10 +0000 (20:52 -0800)]
perl-module: Add "!= NULL" to assignment used as condition.

Suppresses a "clang" warning.

Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
12 years agopspp-dump-sav: Fix sizeof on "array" that is actually a pointer.
Ben Pfaff [Thu, 26 Jan 2012 04:47:13 +0000 (20:47 -0800)]
pspp-dump-sav: Fix sizeof on "array" that is actually a pointer.

Found by clang.
Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>
12 years agoNew abstract class PsppireDialogAction
John Darrington [Wed, 25 Jan 2012 20:02:18 +0000 (21:02 +0100)]
New abstract class PsppireDialogAction

Added a new object PsppireDialogAction which abstracts the behaviour of
dialog boxes.

Converted the Descriptived Dialog and the Variable Info Dialog to use this
new abstraction.

Reviewed-by: Ben Pfaff
12 years agoMakefiles: Define dist_man_MANS before trying to add to it.
Ben Pfaff [Wed, 25 Jan 2012 18:32:24 +0000 (10:32 -0800)]
Makefiles: Define dist_man_MANS before trying to add to it.

Fixes Automake complaint:
utilities/automake.mk:2: dist_man_MANS must be set with `=' before using `+='

Reported-by: John Darrington <john@darrington.wattle.id.au>
12 years agopspp-dump-sav: Mark manpage to be distributed.
Ben Pfaff [Wed, 25 Jan 2012 16:29:17 +0000 (08:29 -0800)]
pspp-dump-sav: Mark manpage to be distributed.

12 years agoRANK: Avoid putting declaration after statement. 20120125030501/pspp
Ben Pfaff [Wed, 25 Jan 2012 06:26:22 +0000 (22:26 -0800)]
RANK: Avoid putting declaration after statement.

12 years agopspp-dump-sav: Add manpage.
Ben Pfaff [Wed, 25 Jan 2012 06:09:18 +0000 (22:09 -0800)]
pspp-dump-sav: Add manpage.

12 years agogui: Use $(INSTALL_DATA), not $(INSTALL), to install data files. 20120124030501/pspp
Ben Pfaff [Tue, 24 Jan 2012 05:28:53 +0000 (21:28 -0800)]
gui: Use $(INSTALL_DATA), not $(INSTALL), to install data files.

Plain $(INSTALL) always adds the executable bit to the installed
files, which has the wrong effect for data files.

Found by lintian.

12 years agoMoved rank.q to rank.c
John Darrington [Mon, 23 Jan 2012 18:47:01 +0000 (19:47 +0100)]
Moved rank.q to rank.c

12 years agoReimplemented the logo as a svg image and converted to a 64x64 bit icon 20120123030503/pspp
John Darrington [Sun, 22 Jan 2012 19:37:46 +0000 (20:37 +0100)]
Reimplemented the logo as a svg image and converted to a 64x64 bit icon

12 years agoREADME: Update. 20120122030502/pspp
Ben Pfaff [Sat, 21 Jan 2012 17:37:26 +0000 (09:37 -0800)]
README: Update.

Suggested-by: John Darrington <john@darrington.wattle.id.au>
12 years agoAdded documentation for the MEANS command 20120119030502/pspp 20120120030503/pspp 20120121030502/pspp
John Darrington [Wed, 18 Jan 2012 19:32:57 +0000 (20:32 +0100)]
Added documentation for the MEANS command

12 years agoImprove behaviour of resizing the value chooser widget 20120117030508/pspp 20120118030501/pspp
John Darrington [Mon, 16 Jan 2012 19:06:43 +0000 (20:06 +0100)]
Improve behaviour of resizing the value chooser widget

12 years agoMEANS: Added further tests for missing value behaviour
John Darrington [Mon, 16 Jan 2012 13:23:35 +0000 (14:23 +0100)]
MEANS: Added further tests for missing value behaviour

12 years agoMEANS: Implemented /MISSING=TABLE subcommand
John Darrington [Mon, 16 Jan 2012 09:47:18 +0000 (10:47 +0100)]
MEANS: Implemented /MISSING=TABLE subcommand

12 years agoMEANS: implemented the /CELLS={ALL,NONE,DEFAULT} options and added a test
John Darrington [Mon, 16 Jan 2012 08:49:50 +0000 (09:49 +0100)]
MEANS: implemented the /CELLS={ALL,NONE,DEFAULT} options and added a test

12 years agoAdd German translation from translationproject.org. 20120116030503/pspp
Ben Pfaff [Sun, 15 Jan 2012 17:53:42 +0000 (09:53 -0800)]
Add German translation from translationproject.org.

This translation is by Matthias Keil <matthias.keil@uni-jena.de> and
the German translation team.

12 years agoRemove stray include directive
John Darrington [Sun, 15 Jan 2012 14:26:11 +0000 (15:26 +0100)]
Remove stray include directive

12 years agoCorrected various misspellings in the documentation 20120115030503/pspp
John Darrington [Sat, 14 Jan 2012 17:45:10 +0000 (18:45 +0100)]
Corrected various misspellings in the documentation

12 years agoMEANS: remove arguments to callbacks which were always unused
John Darrington [Sat, 14 Jan 2012 12:40:35 +0000 (13:40 +0100)]
MEANS: remove arguments to callbacks which were always unused

12 years agoFix warnings
John Darrington [Sat, 14 Jan 2012 12:21:55 +0000 (13:21 +0100)]
Fix warnings

12 years agoMEANS: This command is IMO now stable enough to be used. Adding to command.def
John Darrington [Sat, 14 Jan 2012 12:01:12 +0000 (13:01 +0100)]
MEANS: This command is IMO now stable enough to be used. Adding to command.def

Also added some tests.

12 years agoCategoricals cleanup: New structure 'payload' which reduces the
John Darrington [Sat, 14 Jan 2012 11:54:51 +0000 (12:54 +0100)]
Categoricals cleanup:  New structure 'payload' which reduces the
number of arguments to categoricals_create

12 years agoAvoid deprecated Perl syntax. 20120113030502/pspp 20120114030503/pspp
John Darrington [Thu, 12 Jan 2012 20:21:54 +0000 (21:21 +0100)]
Avoid deprecated Perl syntax.

Apparently new perl versions don't like qw(x y z) without outer  parentheses.  See
http://search.cpan.org/~flora/perl-5.14.2/pod/perl5140delta.pod#Use_of_qw%28...%29_as_parentheses

This change adds these parentheses.

Reported-by: bojo42 <bojo42@gmail.com>
12 years agoUse idle callback to write to the local config directory 20120112030509/pspp
John Darrington [Wed, 11 Jan 2012 21:04:14 +0000 (22:04 +0100)]
Use idle callback to write to the local config directory

When the users config directory is on a filesystem with high latency,
moving a dialog box resulted in many writes and thus an unacceptable
delay.  This change fixes that by consolidating the writes into a
low priority idle callback.

12 years agoFix PSPP link on OpenSUSE and possibly Ubuntu 11.10. 20120111030501/pspp
Ben Pfaff [Wed, 11 Jan 2012 04:52:11 +0000 (20:52 -0800)]
Fix PSPP link on OpenSUSE and possibly Ubuntu 11.10.

Reported-by: friedrich nietzsche <f_nietsje@hotmail.com>
at http://comments.gmane.org/gmane.comp.statistics.pspp.devel/4850
Reported-by: Luis Cebamanos <luiceur@gmail.com>
at http://comments.gmane.org/gmane.comp.statistics.pspp.devel/4869
Reported-by: Mindaugus <embar@super.lt>
Tested-by: Mindaugus <embar@super.lt>
12 years agocairo: Only apply options to table items, to avoid crash. 20120108030503/pspp 20120109030503/pspp 20120110030502/pspp
Ben Pfaff [Sat, 7 Jan 2012 21:14:02 +0000 (13:14 -0800)]
cairo: Only apply options to table items, to avoid crash.

Most of the members of struct xr_rendering, including the 'xr'
member, are used only for table items.  In chart items, these
members are zeroed.  But xr_rendering_apply_options() attempted to
use the 'xr' member even for chart items, which caused a crash.

This reverts and replaces the provisional fix already applied by
John Darrington in commit ee7b576822f (Avoid crash rendering charts
in the gui interface.), which also fixed the crash but added extra
unnecessary work.

Reported-by: Nick Macdonald <nick@nickmacdonald.net>
12 years agoonline_help: use g_spawn_async instead of g_spawn_command_line_async 20120106030503/pspp 20120107030502/pspp
John Darrington [Thu, 5 Jan 2012 20:01:20 +0000 (21:01 +0100)]
online_help: use g_spawn_async instead of g_spawn_command_line_async

This change avoids potential problems caused by metacharacters in the
constructed command arguments.

Suggested by Ben Pfaff.

12 years agoAvoid crash rendering charts in the gui interface.
John Darrington [Thu, 5 Jan 2012 19:11:54 +0000 (20:11 +0100)]
Avoid crash rendering charts in the gui interface.

Reported-by: Nick Macdonald <nick@nickmacdonald.net>
Provisionally Reviewed-by: Ben Pfaff <blp@gnu.org>

12 years agoFix memory leaks parsing string expressions
John Darrington [Thu, 5 Jan 2012 14:39:23 +0000 (15:39 +0100)]
Fix memory leaks parsing string expressions

12 years agoFix memory leaks 20120105030505/pspp
John Darrington [Thu, 5 Jan 2012 09:55:29 +0000 (10:55 +0100)]
Fix memory leaks

12 years agolex_get_text_buffer_read: Avoid potential buffer overflow.
John Darrington [Thu, 5 Jan 2012 06:47:58 +0000 (07:47 +0100)]
lex_get_text_buffer_read: Avoid potential buffer overflow.

12 years agoAdd files to manifest, inadvertantly omitted from previous commit. 20120104030501/pspp
John Darrington [Tue, 3 Jan 2012 19:49:33 +0000 (20:49 +0100)]
Add files to manifest, inadvertantly omitted from previous commit.

12 years agoNew file: builder-wrapper.h and builder-wrapper.c
John Darrington [Tue, 3 Jan 2012 19:41:35 +0000 (20:41 +0100)]
New file: builder-wrapper.h and builder-wrapper.c

Move the functions wrapping GtkBuilder out of helper.c
and into their own file.

12 years agoSet the output driver parameters dynamically from the output window style. 20111223030502/pspp 20111224030502/pspp 20111225030503/pspp 20111226030503/pspp 20111227030503/pspp 20111228030503/pspp 20111229030502/pspp 20111230030503/pspp 20111231030503/pspp 20120101030503/pspp
John Darrington [Thu, 22 Dec 2011 19:57:23 +0000 (20:57 +0100)]
Set the output driver parameters dynamically from the output window style.

This change allows the output driver options to be changed after the driver
has been created.  This is necessary in the GUI to follow the style changes
(eg from theme engines etc)

12 years agopsppire-dialog: Add missing prototype for psppire_dialog_help() to header. 20111221030502/pspp 20111222030502/pspp
Ben Pfaff [Wed, 21 Dec 2011 03:12:19 +0000 (19:12 -0800)]
psppire-dialog: Add missing prototype for psppire_dialog_help() to header.

12 years agodoc/automake.mk: Added eacute to the list of docbook entities which need to be mutated 20111220030504/pspp
John Darrington [Sun, 18 Dec 2011 17:44:35 +0000 (18:44 +0100)]
doc/automake.mk: Added eacute to the list of docbook entities which need to be mutated

12 years agoCorrect packing properties of sort cases dialog.
John Darrington [Sun, 18 Dec 2011 07:40:13 +0000 (08:40 +0100)]
Correct packing properties of sort cases dialog.

12 years agoEscape # character in call to g_spawn_command_line_async 20111218030503/pspp
John Darrington [Sat, 17 Dec 2011 21:14:11 +0000 (22:14 +0100)]
Escape # character in call to g_spawn_command_line_async

It seems that this character was being treated as a comment start.

12 years agoAdded a callback to the dialog help buttons, and a handler to call
John Darrington [Sat, 17 Dec 2011 17:00:47 +0000 (18:00 +0100)]
Added a callback to the dialog help buttons, and a handler to call
the manual when clicked.

12 years agoFix errors in the Texinfo source discovered by makeinfo 4.13.90
John Darrington [Sat, 17 Dec 2011 11:38:29 +0000 (12:38 +0100)]
Fix errors in the Texinfo source discovered by makeinfo 4.13.90

12 years agoOutput Viewer: Try to adapt to changes in style 20111217030502/pspp
John Darrington [Sat, 17 Dec 2011 07:31:03 +0000 (08:31 +0100)]
Output Viewer:  Try to adapt to changes in style

Set the fg and bg of viewer's container and its children to the
text and base of the output window upon style change.  This means that
the output viewer will respond to changes in style once even after the
program has been started.

We still need some way to set the foreground colours of the cairo output
after the driver has been created, but that doesn't seem to be currently
possible.