Skip to content

Commit 3a22daf

Browse files
committed
remove image left/top/mag from workspace saves
1 parent 6c49497 commit 3a22daf

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

TODO

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
- display ctrl bar stops working in x.ws
2+
3+
float issue?
4+
5+
infobar works
6+
7+
rgb pipeline generation failure?
18

29
- get judder with rotate and images smaller than the window
310

src/iimage.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,7 @@ iimage_save(Model *model, xmlNode *xnode)
147147

148148
/* We always rebuild the value from the expr ... don't save.
149149
*/
150-
if (!set_iprop(xthis, "image_left", iimage->image_left) ||
151-
!set_iprop(xthis, "image_top", iimage->image_top) ||
152-
!set_iprop(xthis, "image_mag", iimage->image_mag) ||
153-
!set_sprop(xthis, "show_status", bool_to_char(iimage->show_status)) ||
150+
if (!set_sprop(xthis, "show_status", bool_to_char(iimage->show_status)) ||
154151
!set_sprop(xthis, "show_convert", bool_to_char(iimage->show_convert)))
155152
return NULL;
156153

@@ -175,9 +172,6 @@ iimage_load(Model *model,
175172

176173
g_assert(IS_RHS(parent));
177174

178-
(void) get_iprop(xnode, "image_left", &iimage->image_left);
179-
(void) get_iprop(xnode, "image_top", &iimage->image_top);
180-
(void) get_iprop(xnode, "image_mag", &iimage->image_mag);
181175
(void) get_bprop(xnode, "show_status", &iimage->show_status);
182176
(void) get_bprop(xnode, "show_paintbox", &iimage->show_paintbox);
183177
(void) get_bprop(xnode, "show_convert", &iimage->show_convert);
@@ -407,10 +401,6 @@ iimage_init(iImage *iimage)
407401

408402
iimage->views = NULL;
409403

410-
iimage->image_left = 0;
411-
iimage->image_top = 0;
412-
iimage->image_mag = 0;
413-
414404
iimage->show_status = FALSE;
415405
iimage->show_paintbox = FALSE;
416406
iimage->show_convert = FALSE;

src/iimage.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ struct _iImage {
5454
*/
5555
GSList *views;
5656

57-
/* Track display pos/size/etc. here.
58-
*/
59-
int image_left; /* Scroll position */
60-
int image_top;
61-
int image_mag; /* Scale */
62-
6357
/* View attachments.
6458
*/
6559
gboolean show_status;

src/tilesource.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ tilesource_rgb(Tilesource *tilesource, VipsImage *in)
600600
VipsImage *x;
601601
int n_bands;
602602

603+
printf("tilesource_rgb:\n");
604+
603605
g_autoptr(VipsImage) image = in;
604606
g_object_ref(image);
605607

@@ -809,9 +811,7 @@ tilesource_update_image(Tilesource *tilesource)
809811
return 0;
810812

811813
if (!(image = tilesource_image(tilesource, &mask, tilesource->current_z))) {
812-
#ifdef DEBUG
813814
printf("tilesource_update_image: build failed\n");
814-
#endif /*DEBUG*/
815815
return -1;
816816
}
817817

0 commit comments

Comments
 (0)