Corretto errore nellla rigenerazione del nome di un cursore che e' cambiato.
git-svn-id: svn://10.65.10.50/trunk@433 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
62b6b0d5cf
commit
425b0b73c9
@ -127,8 +127,8 @@ void TBanner::handler(WINDOW win, EVENT* ep)
|
|||||||
x = (r.right-r.left-w)>>1, y = r.bottom - 2*CHARY;
|
x = (r.right-r.left-w)>>1, y = r.bottom - 2*CHARY;
|
||||||
win_draw_text(win, x, y, t, -1);
|
win_draw_text(win, x, y, t, -1);
|
||||||
|
|
||||||
r.left += CHARX; r.right -= CHARX;
|
r.left += 4; r.right -= 4;
|
||||||
r.top += CHARX; r.bottom -= CHARX;
|
r.top += 4; r.bottom -= 4;
|
||||||
set_pen(COLOR_BLACK); win_draw_rect(win, &r);
|
set_pen(COLOR_BLACK); win_draw_rect(win, &r);
|
||||||
offset_rect(&r, 1, 1);
|
offset_rect(&r, 1, 1);
|
||||||
set_pen(COLOR_WHITE); win_draw_rect(win, &r);
|
set_pen(COLOR_WHITE); win_draw_rect(win, &r);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// $Id: relation.cpp,v 1.19 1994-10-20 13:32:22 guy Exp $
|
// $Id: relation.cpp,v 1.20 1994-10-20 17:49:02 guy Exp $
|
||||||
// relation.cpp
|
// relation.cpp
|
||||||
// fv 12/8/93
|
// fv 12/8/93
|
||||||
// relation class for isam files
|
// relation class for isam files
|
||||||
@ -659,11 +659,7 @@ FILE* TCursor::open_index(bool create)
|
|||||||
const char* const w = "wb";
|
const char* const w = "wb";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (create)
|
if (create && _indexname.empty()) _indexname.temp("ci$$");
|
||||||
{
|
|
||||||
CHECKS(_indexname.empty(), "Can't rename cursor index ", (const char*)_indexname);
|
|
||||||
_indexname.temp("ci$$");
|
|
||||||
}
|
|
||||||
FILE* f = fopen(_indexname, create ? w : r);
|
FILE* f = fopen(_indexname, create ? w : r);
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
fatal_box("Can't use cursor index for file %d: '%s'\n",
|
fatal_box("Can't use cursor index for file %d: '%s'\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user