There will be no capital gain tax liability in either case.The dividend is tax free in the hands of investor and the units have been sold more than a year after they were bought.Long term capital again on sale of equity shares/equity oriented units is exempt from tax.