Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing variable.Width is ignored unless variable.TextWidth > 0 #18

Open
CJR017 opened this issue Jan 12, 2017 · 0 comments
Open

Writing variable.Width is ignored unless variable.TextWidth > 0 #18

CJR017 opened this issue Jan 12, 2017 · 0 comments

Comments

@CJR017
Copy link

CJR017 commented Jan 12, 2017

I've found that when using the library to create a numeric variable, variable.Width is ignored unless variable.Textwidth is set beforehand. Consequently when opening the created SAV in PSPP, the columns are not displayed correctly.

My C# is not great, but looking at VariableRecord.cs, I see this, which would seem to explain it:

private static int GetDisplayInfoWith(Variable variable)
{
if (variable.TextWidth > 0)
{
return variable.Width;
}

Is this a bug, or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant