Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ristretto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Avinash Sonawane
ristretto
Commits
f2759fe1
Commit
f2759fe1
authored
Feb 28, 2011
by
Stephan Arts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug #7336, segfault when last image is closed or deleted
- Fix layout of license-header in main-image.c
parent
e173092d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/image_list.c
src/image_list.c
+10
-0
src/main_window.c
src/main_window.c
+3
-1
No files found.
src/image_list.c
View file @
f2759fe1
...
...
@@ -262,6 +262,14 @@ rstto_image_list_remove_image (RsttoImageList *image_list, RsttoImage *image)
if
(
rstto_image_list_iter_get_image
(
iter
->
data
)
==
image
)
{
rstto_image_list_iter_previous
(
iter
->
data
);
/* If the image is still the same,
* it's a single item list,
* and we should force the image in this iter to NULL
*/
if
(
rstto_image_list_iter_get_image
(
iter
->
data
)
==
image
)
{
((
RsttoImageListIter
*
)(
iter
->
data
))
->
priv
->
image
=
NULL
;
}
}
iter
=
g_slist_next
(
iter
);
}
...
...
@@ -503,7 +511,9 @@ rstto_image_list_iter_previous (RsttoImageListIter *iter)
position
=
g_list_previous
(
position
);
if
(
position
)
{
iter
->
priv
->
image
=
position
->
data
;
}
else
{
settings
=
rstto_settings_new
();
...
...
src/main_window.c
View file @
f2759fe1
...
...
@@ -12,7 +12,9 @@
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <gtk/gtk.h>
...
...
Write
Preview
Markdown
is supported
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