File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ object frmMain: TfrmMain
372
372
Caption = 'Copy details to clipboard'
373
373
OnClick = itmEditCopyClick
374
374
end
375
- object Separator2 : TMenuItem
375
+ object itmCopySep : TMenuItem
376
376
Caption = '-'
377
377
end
378
378
object itmSaveFileAs: TMenuItem
@@ -383,7 +383,7 @@ object frmMain: TfrmMain
383
383
Caption = 'Save file with header as...'
384
384
OnClick = itmSaveFileWithHeaderAsClick
385
385
end
386
- object Separator3 : TMenuItem
386
+ object itmSaveFileSep : TMenuItem
387
387
Caption = '-'
388
388
end
389
389
object itmSaveSelectedFilesTo: TMenuItem
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ TfrmMain = class(TForm)
51
51
dlgSaveBinary: TSaveDialog;
52
52
dlgSelectDirectory: TSelectDirectoryDialog;
53
53
Separator1: TMenuItem;
54
- Separator2 : TMenuItem;
55
- Separator3 : TMenuItem;
54
+ itmCopySep : TMenuItem;
55
+ itmSaveFileSep : TMenuItem;
56
56
splVertical: TSplitter;
57
57
staBar: TStatusBar;
58
58
pnlRight: TPanel;
@@ -343,6 +343,8 @@ procedure TfrmMain.popListItemPopup(Sender: TObject);
343
343
itmSaveFileAs.Caption := Format(' Save %s as...' , [DiskFile.FileName]);
344
344
itmSaveFileWithHeaderAs.Caption := Format(' Save %s with header as...' , [DiskFile.FileName]);
345
345
end ;
346
+
347
+ itmSaveFileSep.Visible:= itmSaveFileWithHeaderAs.Visible and itmSaveSelectedFilesTo.Visible;
346
348
end ;
347
349
348
350
function TfrmMain.FindTreeNodeFromData (Node: TTreeNode; Data: TObject): TTreeNode;
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ function TDSKFile.GetData(WithHeader: boolean): TDiskByteArray;
334
334
FileData: TDiskByteArray;
335
335
begin
336
336
FileData := nil ;
337
- SetLength(FileData, Size);
337
+ SetLength(FileData, Size + HeaderSize );
338
338
339
339
BytesLeft := Size + HeaderSize;
340
340
TargetIdx := 0 ;
@@ -372,7 +372,7 @@ function TDSKFile.GetData(WithHeader: boolean): TDiskByteArray;
372
372
if (not WithHeader) and ((HeaderType = ' PLUS3DOS' ) or (HeaderType = ' AMSDOS' )) then
373
373
Result := Copy(FileData, HeaderSize, Size - HeaderSize)
374
374
else
375
- Result := Copy(FileData, Size);
375
+ Result := Copy(FileData, 0 , Size);
376
376
end ;
377
377
378
378
end .
You can’t perform that action at this time.
0 commit comments