Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
1307a104
Commit
1307a104
authored
Nov 13, 2010
by
Thomas White
Committed by
Thomas White
Feb 22, 2012
Browse files
render_hkl: Extra checking
parent
1f0da065
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/render_hkl.c
View file @
1307a104
...
...
@@ -314,12 +314,17 @@ static void render_za(UnitCell *cell, ReflItemList *items,
surface
=
cairo_pdf_surface_create
(
outfile
,
wh
,
ht
);
if
(
cairo_surface_status
(
surface
)
!=
CAIRO_STATUS_SUCCESS
)
{
fprintf
(
stderr
,
"Couldn't create Cairo surface
\n
"
);
ERROR
(
"Couldn't create Cairo surface
\n
"
);
cairo_surface_destroy
(
surface
);
return
;
}
dctx
=
cairo_create
(
surface
);
if
(
cairo_status
(
dctx
)
!=
CAIRO_STATUS_SUCCESS
)
{
ERROR
(
"Couldn't create Cairo context
\n
"
);
cairo_surface_destroy
(
surface
);
return
;
}
/* Black background */
cairo_rectangle
(
dctx
,
0
.
0
,
0
.
0
,
wh
,
ht
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment